mirror of
https://github.com/apache/nuttx.git
synced 2025-12-16 09:45:18 +08:00
sched: Fix undefined reference to 'sched_cpu_count'
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Brennan Ashton
parent
ba3f12c93f
commit
411f5d591a
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user