]> git.sur5r.net Git - u-boot/commitdiff
arm64: optimize __asm_{flush, invalidate}_dcache_all
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 17 May 2016 07:38:06 +0000 (16:38 +0900)
committerTom Rini <trini@konsulko.com>
Fri, 27 May 2016 19:47:54 +0000 (15:47 -0400)
__asm_dcache_all can directly return to the caller of
__asm_{flush,invalidate}_dcache_all.

We do not have to waste x16 register here.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: York Sun <york.sun@nxp.com>
arch/arm/cpu/armv8/cache.S

index a9f4fec387feccf2262ef3eef58efe8d838c1d78..1c71a2f616da815e3e27021ff233d01b36580926 100644 (file)
@@ -104,19 +104,13 @@ finished:
 ENDPROC(__asm_dcache_all)
 
 ENTRY(__asm_flush_dcache_all)
-       mov     x16, lr
        mov     x0, #0
-       bl      __asm_dcache_all
-       mov     lr, x16
-       ret
+       b       __asm_dcache_all
 ENDPROC(__asm_flush_dcache_all)
 
 ENTRY(__asm_invalidate_dcache_all)
-       mov     x16, lr
        mov     x0, #0x1
-       bl      __asm_dcache_all
-       mov     lr, x16
-       ret
+       b       __asm_dcache_all
 ENDPROC(__asm_invalidate_dcache_all)
 
 /*