summaryrefslogtreecommitdiff
path: root/arch/arm/mach-realview
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2009-03-10 10:24:05 +0000
committerCatalin Marinas <catalin.marinas@arm.com>2009-03-10 10:24:05 +0000
commit7e9630563fb6f44e6f450f0fed6942a4bb889b43 (patch)
tree73d854ff3245b3c896f0eed9dca4612d5b053f14 /arch/arm/mach-realview
parent26e26f49192ff78ab41c6589a51302d69ea37cc9 (diff)
RealView: Flush the D-cache after initialising the SCU
On MP systems, the data loaded by CPU0 before the SCU was initialised may not be visible to the other CPUs. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm/mach-realview')
-rw-r--r--arch/arm/mach-realview/platsmp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-realview/platsmp.c b/arch/arm/mach-realview/platsmp.c
index fc926249b157..3d16b77c937c 100644
--- a/arch/arm/mach-realview/platsmp.c
+++ b/arch/arm/mach-realview/platsmp.c
@@ -254,6 +254,11 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
*/
if (max_cpus > 1) {
scu_enable();
+ /*
+ * Ensure that the data accessed by CPU0 before the SCU was
+ * initialised is visible to the other CPUs.
+ */
+ flush_cache_all();
poke_milo();
}
}