diff options
author | Paul Burton <paul.burton@imgtec.com> | 2017-03-30 21:06:10 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-04-12 23:11:56 +0200 |
commit | 131735afc1838997da2c151b614b13f0352cf448 (patch) | |
tree | ba6cb2783d09f92edf2a976d31e68d0207d12e2e /drivers/irqchip/Kconfig | |
parent | irqchip: mips-cpu: Replace magic 0x100 with IE_SW0 (diff) | |
download | linux-131735afc1838997da2c151b614b13f0352cf448.tar.xz linux-131735afc1838997da2c151b614b13f0352cf448.zip |
irqchip: mips-cpu: Prepare for non-legacy IRQ domains
The various struct irq_chip callbacks in the MIPS CPU interrupt
controller driver have been calculating the hardware interrupt number by
subtracting MIPS_CPU_IRQ_BASE from the virq number. This presumes a
linear mapping beginning from MIPS_CPU_IRQ_BASE, and this will not hold
once an IPI IRQ domain is introduced. Switch to using the hwirq field of
struct irq_data which already contains the hardware interrupt number
instead of attempting to calculate it.
Similarly, plat_irq_dispatch calculated the virq number by adding
MIPS_CPU_IRQ_BASE to the hardware interrupt number. Ready this for the
introduction of an IPI IRQ domain by instead using irq_linear_revmap.
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/15835/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'drivers/irqchip/Kconfig')
0 files changed, 0 insertions, 0 deletions