diff options
author | Hanjun Guo <hanjun.guo@linaro.org> | 2014-01-17 20:25:08 +0800 |
---|---|---|
committer | Graeme Gregory <graeme.gregory@linaro.org> | 2014-06-08 20:48:40 +0100 |
commit | 1d8ec071dd26b6f26acb3cf1bb5be23c21c1378c (patch) | |
tree | ac7774ebc40d1c55b8d96587e6d1035d1419fb93 | |
parent | 35f8d29e602b3306aa0afd5b37a140c08f0d2cd4 (diff) |
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.c | 7 |
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; |