From dc5e8b70416e5d511bc361309bd426c767177723 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Thu, 21 May 2015 09:57:35 -0700 Subject: [PATCH] Add boot_ncpus macro For compatibility define boot_ncpus as num_online_cpus(). Signed-off-by: Brian Behlendorf --- include/sys/sysmacros.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/sys/sysmacros.h b/include/sys/sysmacros.h index c56d7e12a6..4838ab3be3 100644 --- a/include/sys/sysmacros.h +++ b/include/sys/sysmacros.h @@ -78,6 +78,7 @@ #define proc_pageout NULL #define curproc current #define max_ncpus num_possible_cpus() +#define boot_ncpus num_online_cpus() #define CPU_SEQID smp_processor_id() #define _NOTE(x) #define is_system_labeled() 0