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:
chenzhijia 2024-09-26 14:38:53 +08:00 committed by GUIDINGLI
parent 32717ae353
commit aca7552d9c

View file

@ -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)