powerpc: Correct smt_enabled=X boot option for > 2 threads per core
authorNathan Fontenot <nfont@austin.ibm.com>
Thu, 5 Aug 2010 07:42:11 +0000 (07:42 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 24 Aug 2010 05:26:30 +0000 (15:26 +1000)
commit954e6da54b2f3a5e2634312db800bc1395c509ee
tree9d5d7e9bab899e694abdc5af716ee878e148351c
parent1afb56cf977ab41bff4fc6bf9e5864770b19b880
powerpc: Correct smt_enabled=X boot option for > 2 threads per core

The 'smt_enabled=X' boot option does not handle values of X > 2.
For Power 7 processors with smt modes of 0,1,2,3, and 4 this does
not work.  This patch allows the smt_enabled option to be set to
any value limited to a max equal to the number of threads per
core.

Signed-off-by: Nathan Fontenot <nfont@austin.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/setup_64.c
arch/powerpc/platforms/pseries/smp.c