diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-03-08 22:53:03 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-03-08 22:53:03 +0000 |
commit | 4d46e1ca76adde886e8aa279d4e7c0679c6f599f (patch) | |
tree | e4433e5f2453fe69a9582add344293c93d918857 /sys | |
parent | 499884d94755b9cd88d9c68b00e9079690a41842 (diff) |
Check "status" property for CPUs too.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sparc64/sparc64/autoconf.c | 5 |
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 |