summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2004-09-01 18:05:43 +0000
committerjulian <julian@FreeBSD.org>2004-09-01 18:05:43 +0000
commit7f91bb5d9aea96d133ac63690a8e5483654c4503 (patch)
tree97b4b471dc8542adfbbea6113adfffd412cf1518
parent23264b36bb8e7708ed05c4da8bd0c1201adf58f9 (diff)
downloadFreeBSD-src-7f91bb5d9aea96d133ac63690a8e5483654c4503.zip
FreeBSD-src-7f91bb5d9aea96d133ac63690a8e5483654c4503.tar.gz
*Blush* forgot to test non SMP builds.. oddly enough some UP code (particularly
in the acpi code) seems to want this in a UP build. (I guess so you can have a sigle kernel module that works for both)
-rw-r--r--sys/kern/subr_smp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c
index c354c2d..84f6160 100644
--- a/sys/kern/subr_smp.c
+++ b/sys/kern/subr_smp.c
@@ -54,13 +54,14 @@ __FBSDID("$FreeBSD$");
#ifdef SMP
volatile cpumask_t stopped_cpus;
volatile cpumask_t started_cpus;
-cpumask_t all_cpus;
cpumask_t idle_cpus_mask;
cpumask_t hlt_cpus_mask;
cpumask_t logical_cpus_mask;
void (*cpustop_restartfunc)(void);
#endif
+/* amazingly enough this is used in non SMP code XXX BUG! */
+cpumask_t all_cpus;
int mp_ncpus;
/* export this for libkvm consumers. */
OpenPOWER on IntegriCloud