diff options
author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2013-12-05 14:26:16 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2013-12-11 19:24:34 -0500 |
commit | f45913fde00f13f502730809d128e607da2a57c8 (patch) | |
tree | 93500b68df0096c857b7f407ed75451456d848bd /arch/arm/mach-exynos | |
parent | bc34eb53ab02bb99f8ffae5662f1fde6f97ad275 (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-exynos')
-rw-r--r-- | arch/arm/mach-exynos/platsmp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-exynos/platsmp.c b/arch/arm/mach-exynos/platsmp.c index 58b43e6f9262..ddf73bd20491 100644 --- a/arch/arm/mach-exynos/platsmp.c +++ b/arch/arm/mach-exynos/platsmp.c | |||
@@ -64,8 +64,7 @@ static void write_pen_release(int val) | |||
64 | { | 64 | { |
65 | pen_release = val; | 65 | pen_release = val; |
66 | smp_wmb(); | 66 | smp_wmb(); |
67 | __cpuc_flush_dcache_area((void *)&pen_release, sizeof(pen_release)); | 67 | sync_cache_w(&pen_release); |
68 | outer_clean_range(__pa(&pen_release), __pa(&pen_release + 1)); | ||
69 | } | 68 | } |
70 | 69 | ||
71 | static void __iomem *scu_base_addr(void) | 70 | static void __iomem *scu_base_addr(void) |