powerpc/4xx: Fix regression in SMP on 476
commitc39eaeb11a73c6f09d2042d55930c54e356fc1c1
authorkerstin jonsson <kerstin.jonsson@ericsson.com>
Tue, 17 May 2011 23:57:11 +0000 (17 23:57 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 23 Jun 2011 22:05:32 +0000 (23 15:05 -0700)
treed464d19facb32eb145e4cfb33f1f70ff12692baa
parentf4f6cfc11c3481c36cc3c8cff15dd756ddf1748e
powerpc/4xx: Fix regression in SMP on 476

commit c560bbceaf6b06e52f1ef20131b76a3fdc0a2c19 upstream.

commit c56e58537d504706954a06570b4034c04e5b7500 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/powerpc/kernel/smp.c