mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user