cpu_pm: Add cpu power management notifiers
authorColin Cross <ccross@android.com>
Thu, 10 Feb 2011 10:04:45 +0000 (02:04 -0800)
committer黄涛 <huangtao@rock-chips.com>
Wed, 22 Feb 2012 06:09:44 +0000 (14:09 +0800)
commitdd5fa6df90fc2264287670e8bb7ae3b46fd479da
tree317961f9a0fa2a76b8f8469510e28cceac5f8f39
parent6f90cd1721daacefced709f01d12c8143b831779
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.

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>
Conflicts:

kernel/power/Kconfig
include/linux/cpu_pm.h [new file with mode: 0644]
kernel/Makefile
kernel/cpu_pm.c [new file with mode: 0644]
kernel/power/Kconfig