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
-6
View File
@@ -790,12 +790,6 @@ int ramlog_register(FAR const char *devpath, FAR char *buffer, size_t buflen)
nxmutex_init(&priv->rl_lock);
#ifndef CONFIG_RAMLOG_NONBLOCKING
nxsem_init(&priv->rl_waitsem, 0, 0);
/* The rl_waitsem semaphore is used for signaling and, hence, should
* not have priority inheritance enabled.
*/
nxsem_set_protocol(&priv->rl_waitsem, SEM_PRIO_NONE);
#endif
priv->rl_bufsize = buflen;
-2
View File
@@ -117,8 +117,6 @@ static int syslog_rpmsg_file_ioctl(FAR struct file *filep, int cmd,
}
nxsem_init(&sem, 0, 0);
nxsem_set_protocol(&sem, SEM_PRIO_NONE);
nxmutex_lock(&g_lock);
list_for_every_entry(&g_list, priv, struct syslog_rpmsg_server_s, node)
{