mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 03:05:40 +08:00
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:
committed by
Masayuki Ishikawa
parent
0146231166
commit
001e7c3e76
@@ -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
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user