mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 17:48:54 +08:00
include/sched.h: CPU_XXX macros can also be used without CONFIG_SMP
Allow CPU_XXX macros to be used without CONFIG_SMP=y Signed-off-by: yanghuatao <yanghuatao@xiaomi.com> Co-authored-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
@@ -71,8 +71,6 @@
|
||||
|
||||
/* These are not standard but are defined for Linux compatibility */
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
|
||||
/* void CPU_ZERO(FAR cpu_set_t *set); */
|
||||
|
||||
#define CPU_ZERO(s) do { *(s) = 0; } while (0)
|
||||
@@ -176,8 +174,6 @@
|
||||
|
||||
#define CPU_EQUAL_S(n,s1,s2) CPU_EQUAL(s1,s2)
|
||||
|
||||
#endif /* CONFIG_SMP */
|
||||
|
||||
/****************************************************************************
|
||||
* Public Type Definitions
|
||||
****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user