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>
This commit is contained in:
Nicolas Pitre
2013-12-05 14:26:16 -05:00
committed by Olof Johansson
parent bc34eb53ab
commit f45913fde0
7 changed files with 7 additions and 14 deletions

View File

@@ -31,8 +31,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 DEFINE_SPINLOCK(boot_lock);