From 2cb0d83a6cc5446e8257008554a0c581ed8cfbd5 Mon Sep 17 00:00:00 2001 From: kensmith Date: Fri, 12 Mar 2004 20:35:21 +0000 Subject: This is a temporary fix to solve a regression issue on sparc64 that is caused by the way sparc64 registers its CPUs. Nate will work on a real fix shortly. Approved by: njl --- sys/kern/subr_smp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c index 15a9eef..4975460 100644 --- a/sys/kern/subr_smp.c +++ b/sys/kern/subr_smp.c @@ -83,6 +83,7 @@ int smp_cpus = 1; /* how many cpu's running */ SYSCTL_INT(_kern_smp, OID_AUTO, cpus, CTLFLAG_RD, &smp_cpus, 0, "Number of CPUs online"); +#ifndef __sparc64__ static void cpu_identify(driver_t *driver, device_t parent); static device_t cpu_add_child(device_t bus, int order, const char *name, int unit); @@ -122,6 +123,7 @@ static driver_t cpu_driver = { }; static devclass_t cpu_devclass; DRIVER_MODULE(cpu, nexus, cpu_driver, cpu_devclass, 0, 0); +#endif #ifdef SMP /* Enable forwarding of a signal to a process running on a different CPU */ @@ -415,6 +417,7 @@ smp_rendezvous(void (* setup_func)(void *), } #endif /* SMP */ +#ifndef __sparc64__ static void cpu_identify(driver_t *driver, device_t parent) { @@ -440,3 +443,4 @@ cpu_add_child(device_t bus, int order, const char *name, int unit) { return (device_add_child_ordered(bus, order, name, unit)); } +#endif -- cgit v1.1