sem:remove sem default protocl

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
anjiahao
2022-10-18 17:09:22 +08:00
committed by Xiang Xiao
parent 205c8934a3
commit 5724c6b2e4
216 changed files with 2 additions and 1155 deletions
-3
View File
@@ -381,7 +381,6 @@ static ssize_t rpmsgdev_write(FAR struct file *filep, const char *buffer,
memset(&cookie, 0, sizeof(cookie));
nxsem_init(&cookie.sem, 0, 0);
nxsem_set_protocol(&cookie.sem, SEM_PRIO_NONE);
while (written < buflen)
{
@@ -679,7 +678,6 @@ static int rpmsgdev_send_recv(FAR struct rpmsgdev_s *priv,
memset(&cookie, 0, sizeof(cookie));
nxsem_init(&cookie.sem, 0, 0);
nxsem_set_protocol(&cookie.sem, SEM_PRIO_NONE);
if (data != NULL)
{
@@ -1034,7 +1032,6 @@ int rpmsgdev_register(FAR const char *remotecpu, FAR const char *remotepath,
dev->remotepath = remotepath;
nxsem_init(&dev->wait, 0, 0);
nxsem_set_protocol(&dev->wait, SEM_PRIO_NONE);
/* Register the rpmsg callback */