ARM: 6960/1: allow enabling SCU code on UP
authorRob Herring <rob.herring@calxeda.com>
Mon, 13 Jun 2011 14:28:53 +0000 (15:28 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 6 Jul 2011 19:55:15 +0000 (20:55 +0100)
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.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Kconfig
arch/arm/kernel/smp_scu.c

index cd8f520..84fda2b 100644 (file)
@@ -1349,7 +1349,6 @@ config SMP_ON_UP
 
 config HAVE_ARM_SCU
        bool
-       depends on SMP
        help
          This option enables support for the ARM system coherency unit
 
index a1e757c..79ed5e7 100644 (file)
@@ -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