sparc32: refactor smp boot
Introduce a common smp_callin() function to call from trampoline_32.S. Add platform specific functions to handle the platform details. This is in preparation for a patch that will unify the smp boot stuff for all architectures. sparc32 was significantly different to warrant this patch in preparation. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Acked-by: David S. Miller <davem@davemloft.net> Cc: "Srivatsa S. Bhat" <srivatsa.bhat@linux.vnet.ibm.com> Acked-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
76968ad2ea
commit
f9fd3488f6
@@ -79,18 +79,15 @@ cpu3_startup:
|
||||
nop
|
||||
|
||||
/* Start this processor. */
|
||||
call smp4m_callin
|
||||
call smp_callin
|
||||
nop
|
||||
|
||||
b,a smp_do_cpu_idle
|
||||
b,a smp_panic
|
||||
|
||||
.text
|
||||
.align 4
|
||||
|
||||
smp_do_cpu_idle:
|
||||
call cpu_idle
|
||||
mov 0, %o0
|
||||
|
||||
smp_panic:
|
||||
call cpu_panic
|
||||
nop
|
||||
|
||||
@@ -144,10 +141,10 @@ sun4d_cpu_startup:
|
||||
nop
|
||||
|
||||
/* Start this processor. */
|
||||
call smp4d_callin
|
||||
call smp_callin
|
||||
nop
|
||||
|
||||
b,a smp_do_cpu_idle
|
||||
b,a smp_panic
|
||||
|
||||
__CPUINIT
|
||||
.align 4
|
||||
@@ -201,7 +198,7 @@ leon_smp_cpu_startup:
|
||||
nop
|
||||
|
||||
/* Start this processor. */
|
||||
call leon_callin
|
||||
call smp_callin
|
||||
nop
|
||||
|
||||
b,a smp_do_cpu_idle
|
||||
b,a smp_panic
|
||||
|
Reference in New Issue
Block a user