diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2010-10-11 05:55:37 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-10-12 10:53:42 -0400 |
commit | 1a0730d6649113c820217387a011a17dd4aff3ad (patch) | |
tree | 3b5240cb87605a72179885d1503f8f7297e4e224 /drivers/pci | |
parent | d585d060b42bd36f6f0b23ff327d3b91f80c7139 (diff) |
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>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/intr_remapping.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/pci/intr_remapping.c b/drivers/pci/intr_remapping.c index a620b8bd8f4..ec87cd66f3e 100644 --- a/drivers/pci/intr_remapping.c +++ b/drivers/pci/intr_remapping.c | |||
@@ -54,13 +54,6 @@ static struct irq_2_iommu *irq_2_iommu(unsigned int irq) | |||
54 | return cfg ? &cfg->irq_2_iommu : NULL; | 54 | return cfg ? &cfg->irq_2_iommu : NULL; |
55 | } | 55 | } |
56 | 56 | ||
57 | int irq_remapped(int irq) | ||
58 | { | ||
59 | struct irq_2_iommu *irq_iommu = irq_2_iommu(irq); | ||
60 | |||
61 | return irq_iommu ? irq_iommu->iommu != NULL : 0; | ||
62 | } | ||
63 | |||
64 | int get_irte(int irq, struct irte *entry) | 57 | int get_irte(int irq, struct irte *entry) |
65 | { | 58 | { |
66 | struct irq_2_iommu *irq_iommu = irq_2_iommu(irq); | 59 | struct irq_2_iommu *irq_iommu = irq_2_iommu(irq); |