]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/4xx: Fix regression in SMP on 476
authorkerstin jonsson <kerstin.jonsson@ericsson.com>
Tue, 17 May 2011 23:57:11 +0000 (23:57 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 19 May 2011 03:09:22 +0000 (13:09 +1000)
commit67184d952872784acd6d76342b507cede991a72f
tree2480c5f8ea7ce28b812da9b47f0de572021f308a
parent95df641c2aaa96f07b37e22015fef85ec0954e42
powerpc/4xx: Fix regression in SMP on 476

commit 54789c108e288d5e69fec6f6cb60f395d182654d breaks SMP support in PPC_47x chip.
 secondary_ti must be set to current thread info before callin kick_cpu or else
 start_secondary_47x will jump into void when trying to return to c-code.
 In the current setup secondary_ti is initialized before the CPU idle task is started
 and only the boot core will start. I am not sure this is the correct solution, but it
 makes SMP possible in my chip.
 Note! The HOTPLUG support probably need some fixing to, There is no trampoline code
 available in head_44x.S - start_secondary_resume?

Signed-off-by: Kerstin Jonsson <kerstin.jonsson@ericsson.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/smp.c