]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] powerpc: Fix bug in spinup of renumbered secondary threads
authorMichael Ellerman <michael@ellerman.id.au>
Thu, 16 Feb 2006 03:13:53 +0000 (14:13 +1100)
committerPaul Mackerras <paulus@samba.org>
Mon, 20 Feb 2006 01:03:37 +0000 (12:03 +1100)
commit82abc833d7e1341828daf9c78bcb27997e6c708e
tree7108aa506b80e8af73f23d6e3b520fdb20a0b808
parentb6695e4943f2b5258df2f0ec1f10b8db9b3e6d47
[PATCH] powerpc: Fix bug in spinup of renumbered secondary threads

If the logical and physical cpu ids of a secondary thread don't match, we will
fail to spin the thread up on pSeries machines due to a bug in pseries/smp.c

We call the RTAS "start-cpu" method with the physical cpu id, the address of
pSeries_secondary_smp_init and the value to pass that function in r3. Currently
we pass "lcpu", the logical cpu id, but pSeries_secondary_smp_init expects
the physical cpu id in r3.

We should be passing pcpu instead.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pseries/smp.c