From: Benjamin Herrenschmidt Date: Thu, 4 Feb 2010 03:33:54 +0000 (+1100) Subject: powerpc/pseries: Pass more accurate number of supported cores to firmware X-Git-Tag: v2.6.34-rc1~271^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efec959f63de850fbd2442189f7dfc9c38efe251;p=pandora-kernel.git 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 Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed