armv7: psci: make v7_flush_dcache_all public for all psci code
authorHongbo Zhang <hongbo.zhang@nxp.com>
Fri, 19 Aug 2016 09:20:30 +0000 (17:20 +0800)
committerYork Sun <york.sun@nxp.com>
Wed, 14 Sep 2016 21:07:29 +0000 (14:07 -0700)
The v7_flush_dcache_all function will be called by ls102xa platform system
suspend, it is necessary to make it a public call instead of a local one, but
changing the LENTRY to ENTRY isn't enough, because there is another one using
the same name, so this one gets a psci_ prefix.

Signed-off-by: Hongbo Zhang <hongbo.zhang@nxp.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: York Sun <york.sun@nxp.com>
arch/arm/cpu/armv7/psci.S
arch/arm/include/asm/psci.h

index f80f6e20d1ecee25edf17a7a12f59081f997d198..6a362085a6e3914888a519211cb7685f4401f652 100644 (file)
@@ -187,7 +187,7 @@ ENDPROC(psci_get_cpu_id)
 .weak psci_get_cpu_id
 
 /* Imported from Linux kernel */
-LENTRY(v7_flush_dcache_all)
+ENTRY(psci_v7_flush_dcache_all)
        stmfd   sp!, {r4-r5, r7, r9-r11, lr}
        dmb                                     @ ensure ordering with previous memory accesses
        mrc     p15, 1, r0, c0, c0, 1           @ read clidr
@@ -234,7 +234,7 @@ finished:
        isb
        ldmfd   sp!, {r4-r5, r7, r9-r11, lr}
        bx      lr
-ENDPROC(v7_flush_dcache_all)
+ENDPROC(psci_v7_flush_dcache_all)
 
 ENTRY(psci_disable_smp)
        mrc     p15, 0, r0, c1, c0, 1           @ ACTLR
@@ -264,7 +264,7 @@ ENTRY(psci_cpu_off_common)
        isb
        dsb
 
-       bl      v7_flush_dcache_all
+       bl      psci_v7_flush_dcache_all
 
        clrex                                   @ Why???
 
index 5b8ce4d31bddf22fa724fb4b22f2edaff8dca205..9f1f779868381b91f14606b1f56c51f8d8348e96 100644 (file)
@@ -89,6 +89,8 @@ void psci_cpu_off_common(void);
 int psci_update_dt(void *fdt);
 void psci_board_init(void);
 int fdt_psci(void *fdt);
+
+void psci_v7_flush_dcache_all(void);
 #endif /* ! __ASSEMBLY__ */
 
 #endif /* __ARM_PSCI_H__ */