]> err.no Git - linux-2.6/commit
[POWERPC] Cleanup SMT thread handling
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 25 Oct 2007 05:27:44 +0000 (15:27 +1000)
committerPaul Mackerras <paulus@samba.org>
Mon, 3 Dec 2007 02:56:25 +0000 (13:56 +1100)
commit8d089085a4e6d8a91c954130cb4caebd50788a08
tree8f852ded25d15ae8cd84c8260909db787292e260
parentb80fa3cce7390185e43ea22e9b3c38ab138bc580
[POWERPC] Cleanup SMT thread handling

This cleans up the SMT thread handling, removing some hard coded
assumptions and providing a set of helpers to convert between linux
cpu numbers, thread numbers and cores.

This implementation requires the number of threads per core to be a
power of 2 and identical on all cores in the system, but it's an
implementation detail, not an API requirement and so this limitation
can be lifted in the future if anybody ever needs it.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/setup-common.c
arch/powerpc/platforms/cell/smp.c
arch/powerpc/platforms/pseries/smp.c
include/asm-powerpc/cputhreads.h [new file with mode: 0644]