]> git.baikalelectronics.ru Git - kernel.git/commit
[SPARC64]: Restore 2.4.x /proc/cpuinfo behavior for "ncpus probed" field.
authorDavid S. Miller <davem@sunset.davemloft.net>
Fri, 11 Nov 2005 20:48:56 +0000 (12:48 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 11 Nov 2005 20:48:56 +0000 (12:48 -0800)
commit4a3bee70abecdc3e764e68c785bb99eea68e0dea
treedb8c485e2837185487aecbd46d27205dbc9e7536
parentaacabbdfe2f36c5d82f56198038fe38ad03e7d50
[SPARC64]: Restore 2.4.x /proc/cpuinfo behavior for "ncpus probed" field.

Noticed by Tom 'spot' Callaway.

Even on uniprocessor we always reported the number of physical
cpus in the system via /proc/cpuinfo.  But when this got changed
to use num_possible_cpus() it always reads as "1" on uniprocessor.
This change was unintentional.

So scan the firmware device tree and count the number of cpu
nodes, and report that, as we always did.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/setup.c
arch/sparc64/kernel/smp.c