diff options
author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2013-12-09 10:10:18 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-12-29 07:32:38 -0500 |
commit | efcfc46e8a654c3dddb51a6c4f46cd818dd926cc (patch) | |
tree | 2e3a26845caf35ab3cc4fd32c357eea15c95b9b8 /arch/arm/common | |
parent | 1b0f6681fcbc0e6365f42ef11beb882c9f73c945 (diff) |
ARM: 7918/1: clean up cache handling in core 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: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/common')
-rw-r--r-- | arch/arm/common/mcpm_entry.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/common/mcpm_entry.c b/arch/arm/common/mcpm_entry.c index 26020a03f659..87c5f1b595bb 100644 --- a/arch/arm/common/mcpm_entry.c +++ b/arch/arm/common/mcpm_entry.c | |||
@@ -35,8 +35,7 @@ void mcpm_set_early_poke(unsigned cpu, unsigned cluster, | |||
35 | unsigned long *poke = &mcpm_entry_early_pokes[cluster][cpu][0]; | 35 | unsigned long *poke = &mcpm_entry_early_pokes[cluster][cpu][0]; |
36 | poke[0] = poke_phys_addr; | 36 | poke[0] = poke_phys_addr; |
37 | poke[1] = poke_val; | 37 | poke[1] = poke_val; |
38 | __cpuc_flush_dcache_area((void *)poke, 8); | 38 | __sync_cache_range_w(poke, 2 * sizeof(*poke)); |
39 | outer_clean_range(__pa(poke), __pa(poke + 2)); | ||
40 | } | 39 | } |
41 | 40 | ||
42 | static const struct mcpm_platform_ops *platform_ops; | 41 | static const struct mcpm_platform_ops *platform_ops; |