From 4d46e1ca76adde886e8aa279d4e7c0679c6f599f Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sat, 8 Mar 2008 22:53:03 +0000 Subject: Check "status" property for CPUs too. --- sys/arch/sparc64/sparc64/autoconf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/arch') 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 -- cgit v1.2.3