forked from nuttx/nuttx-update
sched: Fix undefined reference to 'sched_cpu_count'
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
ba3f12c93f
commit
411f5d591a
1 changed files with 2 additions and 1 deletions
|
@ -30,6 +30,7 @@
|
|||
#include <sys/types.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <strings.h>
|
||||
|
||||
#include <nuttx/sched.h>
|
||||
|
||||
|
@ -90,7 +91,7 @@
|
|||
|
||||
/* int CPU_COUNT(FAR const cpu_set_t *set); */
|
||||
|
||||
# define CPU_COUNT(s) sched_cpu_count(s)
|
||||
# define CPU_COUNT(s) popcountl(*s)
|
||||
|
||||
/* void CPU_AND(FAR cpu_set_t *destset, FAR const cpu_set_t *srcset1,
|
||||
* FAR const cpu_set_t *srcset2);
|
||||
|
|
Loading…
Reference in a new issue