Skip to content

Commit

Permalink
Add boot_ncpus macro
Browse files Browse the repository at this point in the history
For compatibility define boot_ncpus as num_online_cpus().

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
  • Loading branch information
behlendorf committed May 21, 2015
1 parent 62e2eb2 commit dc5e8b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/sys/sysmacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dc5e8b7

Please sign in to comment.