From 411f5d591a29600119cf182aa33f28253bf910d9 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 21 Sep 2020 16:39:09 +0800 Subject: [PATCH] sched: Fix undefined reference to 'sched_cpu_count' Signed-off-by: Xiang Xiao --- include/sched.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/sched.h b/include/sched.h index 250b658197..a652eb6571 100644 --- a/include/sched.h +++ b/include/sched.h @@ -30,6 +30,7 @@ #include #include #include +#include #include @@ -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);