summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/platsmp.c
diff options
context:
space:
mode:
authorNicolas Pitre2013-12-05 20:26:16 +0100
committerOlof Johansson2013-12-12 01:24:34 +0100
commitf45913fde00f13f502730809d128e607da2a57c8 (patch)
tree93500b68df0096c857b7f407ed75451456d848bd /arch/arm/mach-imx/platsmp.c
parentARM: at91: remove redundant dependency (diff)
downloadkernel-qcow2-linux-f45913fde00f13f502730809d128e607da2a57c8.tar.gz
kernel-qcow2-linux-f45913fde00f13f502730809d128e607da2a57c8.tar.xz
kernel-qcow2-linux-f45913fde00f13f502730809d128e607da2a57c8.zip
ARM: clean up cache handling in platform code
We have a handy macro to replace open coded __cpuc_flush_dcache_area(() and outer_clean_range() sequences. Let's use it. No functional change. Signed-off-by: Nicolas Pitre <nico@linaro.org> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-imx/platsmp.c')
-rw-r--r--arch/arm/mach-imx/platsmp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/platsmp.c b/arch/arm/mach-imx/platsmp.c
index 1f24c1fdfea4..5b57c17c06bd 100644
--- a/arch/arm/mach-imx/platsmp.c
+++ b/arch/arm/mach-imx/platsmp.c
@@ -92,8 +92,7 @@ static void __init imx_smp_prepare_cpus(unsigned int max_cpus)
* secondary cores when booting them.
*/
asm("mrc p15, 0, %0, c15, c0, 1" : "=r" (g_diag_reg) : : "cc");
- __cpuc_flush_dcache_area(&g_diag_reg, sizeof(g_diag_reg));
- outer_clean_range(__pa(&g_diag_reg), __pa(&g_diag_reg + 1));
+ sync_cache_w(&g_diag_reg);
}
struct smp_operations imx_smp_ops __initdata = {