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:
yanghuatao
2023-12-20 09:45:38 +08:00
committed by Xiang Xiao
parent cd57bc16c7
commit 87dfcd1020
-4
View File
@@ -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
****************************************************************************/