summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-03-08 22:53:03 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-03-08 22:53:03 +0000
commit4d46e1ca76adde886e8aa279d4e7c0679c6f599f (patch)
treee4433e5f2453fe69a9582add344293c93d918857 /sys
parent499884d94755b9cd88d9c68b00e9079690a41842 (diff)
Check "status" property for CPUs too.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc64/sparc64/autoconf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/sparc64/sparc64/autoconf.c b/sys/arch/sparc64/sparc64/autoconf.c
index 024b22179cd..779b619c257 100644
--- a/sys/arch/sparc64/sparc64/autoconf.c
+++ b/sys/arch/sparc64/sparc64/autoconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: autoconf.c,v 1.78 2008/03/08 16:30:36 kettenis Exp $ */
+/* $OpenBSD: autoconf.c,v 1.79 2008/03/08 22:53:02 kettenis Exp $ */
/* $NetBSD: autoconf.c,v 1.51 2001/07/24 19:32:11 eeh Exp $ */
/*
@@ -700,6 +700,9 @@ extern bus_space_tag_t mainbus_space_tag;
ncpus = 0;
for (node = OF_child(node), node0 = 0; node; node = OF_peer(node)) {
+ if (!checkstatus(node))
+ continue;
+
/*
* UltraSPARC-IV cpus appear as two "cpu" nodes below
* a "cmp" node. Go down one level, but remember