x86: Speed up the irq_remapped check in hot pathes
authorThomas Gleixner <tglx@linutronix.de>
Mon, 11 Oct 2010 09:55:37 +0000 (11:55 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 12 Oct 2010 14:53:42 +0000 (16:53 +0200)
commit1a0730d6649113c820217387a011a17dd4aff3ad
tree3b5240cb87605a72179885d1503f8f7297e4e224
parentd585d060b42bd36f6f0b23ff327d3b91f80c7139
x86: Speed up the irq_remapped check in hot pathes

irq_2_iommu is in struct irq_cfg, so we can do the irq_remapped check
based on irq_cfg instead of going through a lookup function. That's
especially interesting in the eoi_ioapic_irq() hotpath.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
arch/x86/include/asm/irq_remapping.h
arch/x86/kernel/apic/io_apic.c
drivers/pci/intr_remapping.c
include/linux/dmar.h