aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r--arch/arm/kernel/smp_scu.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/kernel/smp_scu.c b/arch/arm/kernel/smp_scu.c
index 7f24ee9d7330..d3831f616ee9 100644
--- a/arch/arm/kernel/smp_scu.c
+++ b/arch/arm/kernel/smp_scu.c
@@ -12,6 +12,7 @@
12#include <linux/io.h> 12#include <linux/io.h>
13 13
14#include <asm/smp_scu.h> 14#include <asm/smp_scu.h>
15#include <asm/cacheflush.h>
15 16
16#define SCU_CTRL 0x00 17#define SCU_CTRL 0x00
17#define SCU_CONFIG 0x04 18#define SCU_CONFIG 0x04
@@ -38,4 +39,10 @@ void __init scu_enable(void __iomem *scu_base)
38 scu_ctrl = __raw_readl(scu_base + SCU_CTRL); 39 scu_ctrl = __raw_readl(scu_base + SCU_CTRL);
39 scu_ctrl |= 1; 40 scu_ctrl |= 1;
40 __raw_writel(scu_ctrl, scu_base + SCU_CTRL); 41 __raw_writel(scu_ctrl, scu_base + SCU_CTRL);
42
43 /*
44 * Ensure that the data accessed by CPU0 before the SCU was
45 * initialised is visible to the other CPUs.
46 */
47 flush_cache_all();
41} 48}