aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/power
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2011-02-10 02:04:45 -0800
committerChristian Neumüller <cn00@gmx.at>2014-12-30 12:53:25 +0100
commit3787bae4c393e3cc65e759005b154953f6c080b7 (patch)
treee49ae7ebcced7703f3d9c1f1ac985c0575b61b0d /kernel/power
parentc1e60df3d5d285e38e16e201933f1716b0da0af2 (diff)
downloadkernel_samsung_smdk4412-3787bae4c393e3cc65e759005b154953f6c080b7.zip
kernel_samsung_smdk4412-3787bae4c393e3cc65e759005b154953f6c080b7.tar.gz
kernel_samsung_smdk4412-3787bae4c393e3cc65e759005b154953f6c080b7.tar.bz2
cpu_pm: Add cpu power management notifiers
During some CPU power modes entered during idle, hotplug and suspend, peripherals located in the CPU power domain, such as the GIC, localtimers, and VFP, may be powered down. Add a notifier chain that allows drivers for those peripherals to be notified before and after they may be reset. Notified drivers can include VFP co-processor, interrupt controller and it's PM extensions, local CPU timers context save/restore which shouldn't be interrupted. Hence CPU PM event APIs must be called with interrupts disabled. Change-Id: I2918473962a75cd55c148f91a3c09a773c99162c Signed-off-by: Colin Cross <ccross@android.com> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Reviewed-by: Kevin Hilman <khilman@ti.com> Tested-and-Acked-by: Shawn Guo <shawn.guo@linaro.org> Tested-by: Kevin Hilman <khilman@ti.com> Tested-by: Vishwanath BS <vishwanath.bs@ti.com> Signed-off-by: Lanchon <lanchon@gmail.com>
Diffstat (limited to 'kernel/power')
-rw-r--r--kernel/power/Kconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig
index 9fda331..ee93757 100644
--- a/kernel/power/Kconfig
+++ b/kernel/power/Kconfig
@@ -338,3 +338,7 @@ config SUSPEND_TIME
Prints the time spent in suspend in the kernel log, and
keeps statistics on the time spent in suspend in
/sys/kernel/debug/suspend_time
+
+config CPU_PM
+ bool
+ depends on SUSPEND || CPU_IDLE