diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-03-25 19:42:56 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-03-25 19:42:56 +0000 |
commit | 5a3efff85dd9072921bc2c3598ca806d448da487 (patch) | |
tree | 59a20f5fd78069043735c75e174b9e04d7777c79 /sys/arch/socppc | |
parent | b135ab353247a5400e7c0844c2890a222f4adc5b (diff) |
architectures which expect to hand-count the number of cpus must clear
ncpufound before counting, because it defaults to 1 (for those
architectures which do not count)
ok kettenis
Diffstat (limited to 'sys/arch/socppc')
-rw-r--r-- | sys/arch/socppc/socppc/mainbus.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/socppc/socppc/mainbus.c b/sys/arch/socppc/socppc/mainbus.c index 0d0decfd081..f4b69114700 100644 --- a/sys/arch/socppc/socppc/mainbus.c +++ b/sys/arch/socppc/socppc/mainbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mainbus.c,v 1.4 2009/09/02 20:29:39 kettenis Exp $ */ +/* $OpenBSD: mainbus.c,v 1.5 2010/03/25 19:42:55 deraadt Exp $ */ /* * Copyright (c) 2008 Mark Kettenis @@ -71,6 +71,7 @@ mainbus_attach(struct device *parent, struct device *self, void *aux) printf("\n"); + ncpusfound = 0; node = OF_finddevice("/cpus"); if (node != -1) { for (node = OF_child(node); node != 0; node = OF_peer(node)) { |