summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-05-10 17:45:49 +0000
committerjhb <jhb@FreeBSD.org>2001-05-10 17:45:49 +0000
commit41fc4419f3762bcb77454d08efb22c049b2259bb (patch)
tree303330e5c0ad9c65ed39b222d1233727e2818286 /sys/ia64
parent666424d146293fddcb56001344a6f8e225cc13de (diff)
downloadFreeBSD-src-41fc4419f3762bcb77454d08efb22c049b2259bb.zip
FreeBSD-src-41fc4419f3762bcb77454d08efb22c049b2259bb.tar.gz
- Split out the support for per-CPU data from the SMP code. UP kernels
have per-CPU data and gdb on the i386 at least needs access to it. - Clean up includes in kern_idle.c and subr_smp.c. Reviewed by: jake
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/ia64/machdep.c3
-rw-r--r--sys/ia64/ia64/mp_machdep.c1
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/ia64/ia64/machdep.c b/sys/ia64/ia64/machdep.c
index 9eac9ed..566a7e5 100644
--- a/sys/ia64/ia64/machdep.c
+++ b/sys/ia64/ia64/machdep.c
@@ -39,6 +39,7 @@
#include <sys/kernel.h>
#include <sys/proc.h>
#include <sys/lock.h>
+#include <sys/pcpu.h>
#include <sys/malloc.h>
#include <sys/reboot.h>
#include <sys/bio.h>
@@ -1368,7 +1369,5 @@ globaldata_init(struct globaldata *globaldata, int cpuid, size_t sz)
{
bzero(globaldata, sz);
globaldata->gd_cpuid = cpuid;
-#ifdef SMP
globaldata_register(globaldata);
-#endif
}
diff --git a/sys/ia64/ia64/mp_machdep.c b/sys/ia64/ia64/mp_machdep.c
index 143963a..95542f7 100644
--- a/sys/ia64/ia64/mp_machdep.c
+++ b/sys/ia64/ia64/mp_machdep.c
@@ -34,6 +34,7 @@
#include <sys/malloc.h>
#include <sys/mutex.h>
#include <sys/kernel.h>
+#include <sys/pcpu.h>
#include <sys/smp.h>
#include <sys/sysctl.h>
OpenPOWER on IntegriCloud