From: Brian Behlendorf Date: Thu, 21 May 2015 16:57:35 +0000 (-0700) Subject: Add boot_ncpus macro X-Git-Tag: spl-0.7.12~188 X-Git-Url: https://git.proxmox.com/?p=mirror_spl.git;a=commitdiff_plain;h=dc5e8b70416e5d511bc361309bd426c767177723 Add boot_ncpus macro For compatibility define boot_ncpus as num_online_cpus(). Signed-off-by: Brian Behlendorf --- diff --git a/include/sys/sysmacros.h b/include/sys/sysmacros.h index c56d7e1..4838ab3 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