summaryrefslogtreecommitdiff
path: root/arch/arm/mach-ux500
diff options
context:
space:
mode:
authorNicolas Pitre <nicolas.pitre@linaro.org>2013-12-05 19:26:16 (GMT)
committerOlof Johansson <olof@lixom.net>2013-12-12 00:24:34 (GMT)
commitf45913fde00f13f502730809d128e607da2a57c8 (patch)
tree93500b68df0096c857b7f407ed75451456d848bd /arch/arm/mach-ux500
parentbc34eb53ab02bb99f8ffae5662f1fde6f97ad275 (diff)
downloadlinux-f45913fde00f13f502730809d128e607da2a57c8.tar.xz
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-ux500')
-rw-r--r--arch/arm/mach-ux500/platsmp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-ux500/platsmp.c b/arch/arm/mach-ux500/platsmp.c
index 1f296e7..a44967f 100644
--- a/arch/arm/mach-ux500/platsmp.c
+++ b/arch/arm/mach-ux500/platsmp.c
@@ -38,8 +38,7 @@ static void write_pen_release(int val)
{
pen_release = val;
smp_wmb();
- __cpuc_flush_dcache_area((void *)&pen_release, sizeof(pen_release));
- outer_clean_range(__pa(&pen_release), __pa(&pen_release + 1));
+ sync_cache_w(&pen_release);
}
static void __iomem *scu_base_addr(void)