summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/iseries
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2010-06-17 16:33:06 +0200
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-07-08 10:11:42 +0200
commit33ad5e4b6cab3ad8cf3afda49b66393f1833150e (patch)
tree446a0139ed39a6eb94baa8ccb0742ca5b670d65a /arch/powerpc/platforms/iseries
parentpowerpc: Fix feature-fixup tests for gcc 4.5 (diff)
downloadlinux-33ad5e4b6cab3ad8cf3afda49b66393f1833150e.tar.xz
linux-33ad5e4b6cab3ad8cf3afda49b66393f1833150e.zip
powerpc: Linux cannot run with 0 cores
If we configure with CONFIG_SMP=n or set NR_CPUS less than the number of SMT threads we will set the max cores property to 0 in the ibm,client-architecture-support structure. On new versions of firmware that understand this property it obliges and terminates our partition. Use DIV_ROUND_UP so we handle not only the CONFIG_SMP=n case but also the case where NR_CPUS isn't a multiple of the number of SMT threads. Signed-off-by: Anton Blanchard <anton@samba.org> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/iseries')
0 files changed, 0 insertions, 0 deletions