summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2009-11-11 00:37:21 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-11-11 00:37:21 +0100
commit65f69e5c16f8eee17b7f71bfad9e8e58f44c7386 (patch)
tree0bfc3b13f311387b9fc12db2cb44fea3713d2708 /arch/arm/kernel
parentARM: Use a definition for the userspace cmpxchg emulation syscall (diff)
parentRealView: Add sparsemem support for the RealView PBX platform (diff)
downloadlinux-65f69e5c16f8eee17b7f71bfad9e8e58f44c7386.tar.xz
linux-65f69e5c16f8eee17b7f71bfad9e8e58f44c7386.zip
Merge branch 'for-rmk' of git://linux-arm.org/linux-2.6
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r--arch/arm/kernel/smp_scu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/kernel/smp_scu.c b/arch/arm/kernel/smp_scu.c
index d3831f616ee9..9ab4149bd983 100644
--- a/arch/arm/kernel/smp_scu.c
+++ b/arch/arm/kernel/smp_scu.c
@@ -37,6 +37,10 @@ void __init scu_enable(void __iomem *scu_base)
u32 scu_ctrl;
scu_ctrl = __raw_readl(scu_base + SCU_CTRL);
+ /* already enabled? */
+ if (scu_ctrl & 1)
+ return;
+
scu_ctrl |= 1;
__raw_writel(scu_ctrl, scu_base + SCU_CTRL);