Skip to content

Commit

Permalink
ARM: 6960/1: allow enabling SCU code on UP
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rob Herring authored and Russell King committed Jul 6, 2011
1 parent eca5dc2 commit 10cdc7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions arch/arm/kernel/smp_scu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 10cdc7e

Please sign in to comment.