diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/sched_4bsd.c | 1 | ||||
-rw-r--r-- | sys/sys/smp.h | 7 |
2 files changed, 5 insertions, 3 deletions
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c index 8175b9e..5498d5c 100644 --- a/sys/kern/sched_4bsd.c +++ b/sys/kern/sched_4bsd.c @@ -48,6 +48,7 @@ __FBSDID("$FreeBSD$"); #include <sys/smp.h> #include <sys/sysctl.h> #include <sys/sx.h> +#include <machine/smp.h> /* * INVERSE_ESTCPU_WEIGHT is only suitable for statclock() frequencies in diff --git a/sys/sys/smp.h b/sys/sys/smp.h index b9f630c..ba95183 100644 --- a/sys/sys/smp.h +++ b/sys/sys/smp.h @@ -49,16 +49,17 @@ extern int smp_active; extern int smp_cpus; extern volatile cpumask_t started_cpus; extern volatile cpumask_t stopped_cpus; +extern cpumask_t idle_cpus_mask; +extern cpumask_t hlt_cpus_mask; +extern cpumask_t logical_cpus_mask; #endif /* SMP */ extern u_int mp_maxid; +extern int mp_maxcpus; extern int mp_ncpus; extern volatile int smp_started; extern cpumask_t all_cpus; -extern cpumask_t idle_cpus_mask; -extern cpumask_t hlt_cpus_mask; -extern cpumask_t logical_cpus_mask; /* * Macro allowing us to determine whether a CPU is absent at any given |