aboutsummaryrefslogtreecommitdiff
path: root/init/main.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-02-04 14:33:54 +1100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-02-04 14:33:54 +1100
commitefec959f63de850fbd2442189f7dfc9c38efe251 (patch)
tree63824395c5ddb427cbcd115f975154b09ebb1334 /init/main.c
parent28bb9ee13aa0ee4c57dc3568f539cc84920b43aa (diff)
powerpc/pseries: Pass more accurate number of supported cores to firmware
Updated variant of a patch by Joel Schopp. The field containing the number of supported cores which we pass to firmware via the ibm,client-architecture call was set by a previous patch statically as high as is possible (NR_CPUS). However, that value isn't quite right for a system that supports multiple threads per core, thus permitting the firmware to assign more cores to a Linux partition than it can really cope with. This patch improves it by using the device-tree to determine the number of threads supported by the processors in order to adjust the value passed to firmware. Signed-off-by: Joel Schopp <jschopp@austin.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'init/main.c')
0 files changed, 0 insertions, 0 deletions