Skip to contentSkip to conversation

ARM: allow enabling SCU code on UP

PATCH New Rob Herring 1 participant 1 message Jun 7, 2011 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: allow enabling SCU code on UP

From: Rob Herring <[email protected]>

The scu_power_mode function can be used on UP builds as it drives signals to an SOC power controller. So make it selectable for !SMP.

---
 arch/arm/Kconfig          |    1 -
 arch/arm/kernel/smp_scu.c |    2 ++
 2 files changed, 2 insertions(+), 1 deletions(-)
arch/arm/Kconfig +0 -1
index 9adc278..8665a24 100644
@@ -1346,7 +1346,6 @@ config SMP_ON_UP
 
 config HAVE_ARM_SCU
 	bool
-	depends on SMP
 	help
 	  This option enables support for the ARM system coherency unit
 
arch/arm/kernel/smp_scu.c +2 -0
index a1e757c..79ed5e7 100644
@@ -20,6 +20,7 @@
 #define SCU_INVALIDATE		0x0c
 #define SCU_FPGA_REVISION	0x10
 
+#ifdef CONFIG_SMP
 /*
  * Get the number of CPU cores from the SCU configuration
  */
@@ -50,6 +51,7 @@ void __init scu_enable(void __iomem *scu_base)
 	 */
 	flush_cache_all();
 }
+#endif
 
 /*
  * Set the executing CPUs power mode as defined.  This will be in
Signature · 1 line
1.7.4.1