diff options
author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2013-12-05 20:26:16 +0100 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2013-12-12 01:24:34 +0100 |
commit | f45913fde00f13f502730809d128e607da2a57c8 (patch) | |
tree | 93500b68df0096c857b7f407ed75451456d848bd /arch/arm/mach-prima2 | |
parent | ARM: at91: remove redundant dependency (diff) | |
download | linux-f45913fde00f13f502730809d128e607da2a57c8.tar.xz 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-prima2')
-rw-r--r-- | arch/arm/mach-prima2/platsmp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-prima2/platsmp.c b/arch/arm/mach-prima2/platsmp.c index 3dbcb1ab6e37..e358b0736dea 100644 --- a/arch/arm/mach-prima2/platsmp.c +++ b/arch/arm/mach-prima2/platsmp.c @@ -106,8 +106,7 @@ static int sirfsoc_boot_secondary(unsigned int cpu, struct task_struct *idle) * "cpu" is Linux's internal ID. */ pen_release = cpu_logical_map(cpu); - __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); /* * Send the secondary CPU SEV, thereby causing the boot monitor to read |