Skip to content
Commit 4d45cbac authored by David S. Miller's avatar David S. Miller
Browse files

[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: default avatarDavid S. Miller <davem@davemloft.net>
parent 388f7ef7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment