kernel: expose k_busy_wait() to user mode

If we just had the kernel's implementation, we could
just move this to lib/, but possible arch-specific
implementations dictate that we just make this a
syscall.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2018-11-14 14:29:24 -08:00 committed by Anas Nashif
commit 42cfd4ff26
6 changed files with 23 additions and 11 deletions

View file

@ -800,7 +800,7 @@ __syscall s32_t k_sleep(s32_t duration);
*
* @return N/A
*/
extern void k_busy_wait(u32_t usec_to_wait);
__syscall void k_busy_wait(u32_t usec_to_wait);
/**
* @brief Yield the current thread.