x86: dt: Use linear irq domain for ioapic(s)
authorSebastian Andrzej Siewior <sebastian@breakpoint.cc>
Mon, 13 Aug 2012 20:23:33 +0000 (22:23 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 21 Aug 2012 20:16:57 +0000 (22:16 +0200)
commitece3234a77ebcd5bbeea6b829c9798328d290cae
tree85e6a0215ed892a078bb781bd0f0a1cbfdd4c768
parent9160338de92c0305329be5163a76f849806e83de
x86: dt: Use linear irq domain for ioapic(s)

The former conversion to irq_domain_add_legacy() did not fully work
since we miss the irq decs for NR_IRQS_LEGACY+.

Ideally we could use irq_domain_add_simple() or the no-map variant (and
program the virq <-> line mapping directly into ioapic) but this would
require a different irq lookup in "do_IRQ()" and won't work with ACPI
without changes. So this is probably easiest for everyone.

Tested-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Grant Likely <grant.likely@secretlab.ca>
Link: http://lkml.kernel.org/r/20120813202304.GA3529@breakpoint.cc
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/devicetree.c