summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkensmith <kensmith@FreeBSD.org>2004-03-12 20:35:21 +0000
committerkensmith <kensmith@FreeBSD.org>2004-03-12 20:35:21 +0000
commit2cb0d83a6cc5446e8257008554a0c581ed8cfbd5 (patch)
tree4177622c0b5a9c152bed7f84d5028f18dad3f715
parent3b9c3dff42a3c0ea7fc114e338e456cb79d6b757 (diff)
downloadFreeBSD-src-2cb0d83a6cc5446e8257008554a0c581ed8cfbd5.zip
FreeBSD-src-2cb0d83a6cc5446e8257008554a0c581ed8cfbd5.tar.gz
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
-rw-r--r--sys/kern/subr_smp.c4
1 files changed, 4 insertions, 0 deletions
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
OpenPOWER on IntegriCloud