mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-23 03:19:43 +09:00
arm64: optimize smp_kick_all_cpus
gic_kick_secondary_cpus can directly return to the caller of smp_kick_all_cpus. We do not have to use x29 register here. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: York Sun <york.sun@nxp.com>
This commit is contained in:
parent
a2cfc8d593
commit
afedf5488d
@ -258,12 +258,10 @@ ENDPROC(lowlevel_init)
|
|||||||
|
|
||||||
WEAK(smp_kick_all_cpus)
|
WEAK(smp_kick_all_cpus)
|
||||||
/* Kick secondary cpus up by SGI 0 interrupt */
|
/* Kick secondary cpus up by SGI 0 interrupt */
|
||||||
mov x29, lr /* Save LR */
|
|
||||||
#if defined(CONFIG_GICV2) || defined(CONFIG_GICV3)
|
#if defined(CONFIG_GICV2) || defined(CONFIG_GICV3)
|
||||||
ldr x0, =GICD_BASE
|
ldr x0, =GICD_BASE
|
||||||
bl gic_kick_secondary_cpus
|
b gic_kick_secondary_cpus
|
||||||
#endif
|
#endif
|
||||||
mov lr, x29 /* Restore LR */
|
|
||||||
ret
|
ret
|
||||||
ENDPROC(smp_kick_all_cpus)
|
ENDPROC(smp_kick_all_cpus)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user