mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 05:42:05 +08:00
nuttx/include:add #define CPU_SETSIZE in sched.h
add #define CPU_SETSIZE in sched.h to pass tlpi example: https://man7.org/tlpi/code/online/dist/procpri/t_sched_getaffinity.c.html Signed-off-by: chenzhijia <chenzhijia@xiaomi.com>
This commit is contained in:
@@ -75,6 +75,10 @@
|
||||
|
||||
/* These are not standard but are defined for Linux compatibility */
|
||||
|
||||
/* Maximum number of CPUs */
|
||||
|
||||
#define CPU_SETSIZE CONFIG_SMP_NCPUS
|
||||
|
||||
/* void CPU_ZERO(FAR cpu_set_t *set); */
|
||||
|
||||
#define CPU_ZERO(s) do { *(s) = 0; } while (0)
|
||||
|
||||
Reference in New Issue
Block a user