]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Use cpu_thread_in_core in smp_init for of_spin_map
authorMilton Miller <miltonm@bga.com>
Mon, 20 Oct 2008 15:37:03 +0000 (15:37 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 21 Oct 2008 04:19:12 +0000 (15:19 +1100)
commitfc5691bcec6ccf048732c585532a89e32a93ac41
treecd6b0655ba24655fb3bbdf58601099754a9bf232
parent07964f788bd2ee517ba35966e462cc2b8522f294
powerpc: Use cpu_thread_in_core in smp_init for of_spin_map

We used to assume that even numbered threads were the primary
threads, ie those that would be listed and started as a cpu from
open firmware.  Replace a left over is even (% 2) check with a check
for it being a primary thread and update the comments.

Tested with a debug print on pseries, identical code found for cell.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/cell/smp.c
arch/powerpc/platforms/pseries/smp.c