aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-sti
diff options
context:
space:
mode:
authorNicolas Pitre <nicolas.pitre@linaro.org>2013-12-05 14:26:16 -0500
committerOlof Johansson <olof@lixom.net>2013-12-11 19:24:34 -0500
commitf45913fde00f13f502730809d128e607da2a57c8 (patch)
tree93500b68df0096c857b7f407ed75451456d848bd /arch/arm/mach-sti
parentbc34eb53ab02bb99f8ffae5662f1fde6f97ad275 (diff)
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-sti')
-rw-r--r--arch/arm/mach-sti/platsmp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-sti/platsmp.c b/arch/arm/mach-sti/platsmp.c
index dce50d983a8e..fa2c33ffac04 100644
--- a/arch/arm/mach-sti/platsmp.c
+++ b/arch/arm/mach-sti/platsmp.c
@@ -31,8 +31,7 @@ static void write_pen_release(int val)
31{ 31{
32 pen_release = val; 32 pen_release = val;
33 smp_wmb(); 33 smp_wmb();
34 __cpuc_flush_dcache_area((void *)&pen_release, sizeof(pen_release)); 34 sync_cache_w(&pen_release);
35 outer_clean_range(__pa(&pen_release), __pa(&pen_release + 1));
36} 35}
37 36
38static DEFINE_SPINLOCK(boot_lock); 37static DEFINE_SPINLOCK(boot_lock);