]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: 8122/1: smp_scu: enable SCU standby support
authorShawn Guo <shawn.guo@freescale.com>
Thu, 31 Jul 2014 01:07:37 +0000 (02:07 +0100)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:17:03 +0000 (21:17 -0600)
commit150f379a1d89e023f80a3c7156348c1f6e2b4f36
treea684fbd06d8a5b6eba600a91e5887d3b2681eb09
parentfbdb0df8b95350eaec2954e801ca1a1143758603
ARM: 8122/1: smp_scu: enable SCU standby support

With SCU standby enabled, SCU CLK will be turned off when all processors
are in WFI mode.  And the clock will be turned on when any processor
leaves WFI mode.

This behavior should be preferable in terms of power efficiency of
system idle.  So let's set the SCU standby bit to enable the support in
function scu_enable().

Cortex-A9 earlier than r2p0 has no standby bit in SCU, so we need to
skip setting the bit for those.

shawn.guo: cherry-pick commit c716483c3db1 from upstream

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Acked-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/smp_scu.c