aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanjun Guo <hanjun.guo@linaro.org>2014-01-17 20:25:08 +0800
committerGraeme Gregory <graeme.gregory@linaro.org>2014-06-03 09:24:08 +0100
commite5e8d58e14eaf7b96668bae0edd68127c6719ba6 (patch)
tree9d412860453a812382d25ba5e6e1f373f3c263c1
parentf26d3f37f299262152e833763597f15fe0c9b4d8 (diff)
downloadleg-kernel-e5e8d58e14eaf7b96668bae0edd68127c6719ba6.tar.gz
Irqchip / gic: Set as default domain so we can access from ACPI
Only one GIC is supported in ACPI 5.0, even cascade GIC is not supported. So if we set the GIC as the default domain then we can access it for IRQ mapping within the ACPI code. Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org> Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
-rw-r--r--drivers/irqchip/irq-gic.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c
index 57d165e026f4..e03e3c157264 100644
--- a/drivers/irqchip/irq-gic.c
+++ b/drivers/irqchip/irq-gic.c
@@ -1029,6 +1029,13 @@ void __init gic_init_bases(unsigned int gic_nr, int irq_start,
register_cpu_notifier(&gic_cpu_notifier);
#endif
set_handle_irq(gic_handle_irq);
+
+ /*
+ * do not set default host for GIC domain multi-times.
+ * FIXME: This probably needs revisited when multi GICs
+ * supported
+ */
+ irq_set_default_host(gic->domain);
}
gic_chip.flags |= gic_arch_extn.flags;