Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [POWERPC] Fix thinko in cpu_thread_mask_to_cores() | Benjamin Herrenschmidt | 2008-02-26 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | The function cpu_thread_mask_to_cores() which returns a cpumask of one and only one thread enabled for a given core has a bug as it's shifting things in the wrong direction. Note: The implementation is still sub-optimal in the sense that for a given core, the thread set in the result may not be any of the threads set in the input, which can lead to more IPIs then strictly necessary, but it isn't incorrect per-se. I'll improve that later. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org> | ||||
* | [POWERPC] Cleanup SMT thread handling | Benjamin Herrenschmidt | 2007-12-03 | 1 | -0/+71 |
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> |