ARM: gic: Use cpu pm notifiers to save gic state
authorColin Cross <ccross@android.com>
Thu, 10 Feb 2011 20:54:10 +0000 (12:54 -0800)
committerSantosh Shilimkar <santosh.shilimkar@ti.com>
Fri, 23 Sep 2011 06:35:30 +0000 (12:05 +0530)
commit254056f3b12563c11e6dbcfad2fbfce20a4f3302
tree4e25156bfe5cc0613a0aaeba91233bf9936a8d92
parent1fb9026344ea9ecc7c5860240104109112384a61
ARM: gic: Use cpu pm notifiers to save gic state

When the cpu is powered down in a low power mode, the gic cpu
interface may be reset, and when the cpu cluster is powered
down, the gic distributor may also be reset.

This patch uses CPU_PM_ENTER and CPU_PM_EXIT notifiers to save
and restore the gic cpu interface registers, and the
CPU_CLUSTER_PM_ENTER and CPU_CLUSTER_PM_EXIT notifiers to save
and restore the gic distributor registers.

Original-author: Gary King <gking@nvidia.com>
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-and-Acked-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Vishwanath BS <vishwanath.bs@ti.com>
arch/arm/common/gic.c
arch/arm/include/asm/hardware/gic.h