summaryrefslogtreecommitdiff
path: root/drivers/irqchip
diff options
context:
space:
mode:
authorSeshendra Gadagottu <sgadagottu@nvidia.com>2013-05-03 19:37:41 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 13:12:05 -0700
commitb8c85d1f1ffb7e7360b51a2660e31c9a7e720cf6 (patch)
treeee53d4a8212c285577a3467d99cc199198521540 /drivers/irqchip
parent1882371ec8e5cf8d4974bffd16dcaf6caa0ad00b (diff)
ARM: gic: disable gic distributor on cpu idle
GIC_DIST_CTRL is not disabled during cpu idle, so causing wfi to follow-through. So disabling GIC_DIST_CTRL on cpu idle entry. It will be enabled back on cpu idle exit. Bug 1255882 Change-Id: I09ebacbe8e53ec6a3bfb22c6f74cc3d0087bbf61 Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: http://git-master/r/225454 Reviewed-by: Sachin Nikam <snikam@nvidia.com> Tested-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'drivers/irqchip')
-rw-r--r--drivers/irqchip/irq-gic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c
index efb97eae6f64..c1e4bcdb076a 100644
--- a/drivers/irqchip/irq-gic.c
+++ b/drivers/irqchip/irq-gic.c
@@ -498,6 +498,8 @@ static void gic_dist_save(unsigned int gic_nr)
for (i = 0; i < DIV_ROUND_UP(gic_irqs, 32); i++)
gic_data[gic_nr].saved_spi_enable[i] =
readl_relaxed(dist_base + GIC_DIST_ENABLE_SET + i * 4);
+
+ writel_relaxed(0, dist_base + GIC_DIST_CTRL);
}
/*