kernel: replace all usleep to nxsig_usleep in kernel space

syscall cannot be called from kernel space

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an
2023-10-25 11:08:56 +08:00
committed by Xiang Xiao
parent ee84ea3875
commit 3cadf6642a
35 changed files with 81 additions and 48 deletions
+3 -1
View File
@@ -26,11 +26,13 @@
#include <unistd.h>
#include <nuttx/signal.h>
/****************************************************************************
* Public Functions
****************************************************************************/
void sm_sleep(uint32_t msec)
{
usleep(1000 * msec);
nxsig_usleep(1000 * msec);
}