Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

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

1 comment on commit dc5e8b7

@dweeezil
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I knew that's where we wanted it. I have it hacked into my -next branch for the moment and will remove it when I wrap it up later today.

Please sign in to comment.