sched: Don't include nuttx/sched.h inside sched.h

But let nuttx/sched.h include sched.h instead to
avoid expose nuttx kernel API to userspace.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2021-05-14 10:03:23 +08:00
committed by Masayuki Ishikawa
parent 0146231166
commit 001e7c3e76
105 changed files with 256 additions and 224 deletions
+3 -10
View File
@@ -27,19 +27,12 @@
#include <sys/types.h>
#include <sys/boardctl.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <pthread.h>
#include <sched.h>
/* The architecture specific spinlock.h header file must provide the
* following:
*
* SP_LOCKED - A definition of the locked state value (usually 1)
* SP_UNLOCKED - A definition of the unlocked state value (usually 0)
* spinlock_t - The type of a spinlock memory object (usually uint8_t).
*/
#include <arch/spinlock.h>
#ifdef CONFIG_PTHREAD_SPINLOCKS
/****************************************************************************