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:
parent
32717ae353
commit
aca7552d9c
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue