* [U-Boot] [PATCH] arm64: optimize smp_kick_all_cpus
@ 2016-06-17 9:32 Masahiro Yamada
2016-06-17 15:24 ` york sun
2016-06-25 2:52 ` [U-Boot] " Tom Rini
0 siblings, 2 replies; 3+ messages in thread
From: Masahiro Yamada @ 2016-06-17 9:32 UTC (permalink / raw)
To: u-boot
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>
---
arch/arm/cpu/armv8/start.S | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/arm/cpu/armv8/start.S b/arch/arm/cpu/armv8/start.S
index c1a2f45..670e323 100644
--- a/arch/arm/cpu/armv8/start.S
+++ b/arch/arm/cpu/armv8/start.S
@@ -258,12 +258,10 @@ ENDPROC(lowlevel_init)
WEAK(smp_kick_all_cpus)
/* Kick secondary cpus up by SGI 0 interrupt */
- mov x29, lr /* Save LR */
#if defined(CONFIG_GICV2) || defined(CONFIG_GICV3)
ldr x0, =GICD_BASE
- bl gic_kick_secondary_cpus
+ b gic_kick_secondary_cpus
#endif
- mov lr, x29 /* Restore LR */
ret
ENDPROC(smp_kick_all_cpus)
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] arm64: optimize smp_kick_all_cpus
2016-06-17 9:32 [U-Boot] [PATCH] arm64: optimize smp_kick_all_cpus Masahiro Yamada
@ 2016-06-17 15:24 ` york sun
2016-06-25 2:52 ` [U-Boot] " Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: york sun @ 2016-06-17 15:24 UTC (permalink / raw)
To: u-boot
On 06/17/2016 02:32 AM, Masahiro Yamada wrote:
> 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>
> ---
>
> arch/arm/cpu/armv8/start.S | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/arch/arm/cpu/armv8/start.S b/arch/arm/cpu/armv8/start.S
> index c1a2f45..670e323 100644
> --- a/arch/arm/cpu/armv8/start.S
> +++ b/arch/arm/cpu/armv8/start.S
> @@ -258,12 +258,10 @@ ENDPROC(lowlevel_init)
>
> WEAK(smp_kick_all_cpus)
> /* Kick secondary cpus up by SGI 0 interrupt */
> - mov x29, lr /* Save LR */
> #if defined(CONFIG_GICV2) || defined(CONFIG_GICV3)
> ldr x0, =GICD_BASE
> - bl gic_kick_secondary_cpus
> + b gic_kick_secondary_cpus
> #endif
> - mov lr, x29 /* Restore LR */
> ret
> ENDPROC(smp_kick_all_cpus)
>
>
Reviewed-by: York Sun <york.sun@nxp.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] arm64: optimize smp_kick_all_cpus
2016-06-17 9:32 [U-Boot] [PATCH] arm64: optimize smp_kick_all_cpus Masahiro Yamada
2016-06-17 15:24 ` york sun
@ 2016-06-25 2:52 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2016-06-25 2:52 UTC (permalink / raw)
To: u-boot
On Fri, Jun 17, 2016 at 06:32:47PM +0900, Masahiro Yamada wrote:
> 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>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160624/b8587bd2/attachment.sig>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-06-25 2:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-17 9:32 [U-Boot] [PATCH] arm64: optimize smp_kick_all_cpus Masahiro Yamada
2016-06-17 15:24 ` york sun
2016-06-25 2:52 ` [U-Boot] " Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.