Subject: Multiprocessor kernel doesn't count processors
To: None <port-macppc@netbsd.org>
From: John Klos <john@klos.com>
List: port-macppc
Date: 12/12/2004 19:13:49
Hi,

I am running a -current GENERIC.MP kernel, but I have not yet put my dual 
processor CPU card into the machine yet - it just has a card with a single 
233 MHz 604e:

NetBSD 2.99.11 (GENERIC.MP) #0: Sun Dec 12 12:36:43 PST 2004
         john@lain.ziaspace.com:/usr/current/src/sys/arch/macppc/compile/obj/GENERIC.MP
total memory = 384 MB
avail memory = 364 MB
mainbus0 (root)
cpu0 at mainbus0: 604e (Revision 2.4), ID 0 (primary)
cpu0: HID0 8000c084<EMCP,ICE,DCE,SGE,BHT>
cpu0: 235.30 MHz

However, I noticed that top reports two CPUs:
CPU0 states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle
CPU1 states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  0.0% idle

sysctl says:
hw.ncpu = 2

Does this mean that the CPU count on, say, 4 processor 604e systems isn't 
automatic, too?

John Klos