aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/acpi/boot.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/acpi/boot.c')
-rw-r--r--arch/x86/kernel/acpi/boot.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c
index 9add76f15cb0..fd4b6d2e436c 100644
--- a/arch/x86/kernel/acpi/boot.c
+++ b/arch/x86/kernel/acpi/boot.c
@@ -101,17 +101,6 @@ static u32 isa_irq_to_gsi[NR_IRQS_LEGACY] __read_mostly = {
101 101
102#define ACPI_INVALID_GSI INT_MIN 102#define ACPI_INVALID_GSI INT_MIN
103 103
104static int map_gsi_to_irq(unsigned int gsi, unsigned int flags)
105{
106 int i;
107
108 for (i = 0; i < nr_legacy_irqs(); i++)
109 if (isa_irq_to_gsi[i] == gsi)
110 return i;
111
112 return mp_map_gsi_to_irq(gsi, flags);
113}
114
115/* 104/*
116 * This is just a simple wrapper around early_ioremap(), 105 * This is just a simple wrapper around early_ioremap(),
117 * with sanity checks for phys == 0 and size == 0. 106 * with sanity checks for phys == 0 and size == 0.
@@ -422,7 +411,7 @@ static int mp_register_gsi(struct device *dev, u32 gsi, int trigger,
422 return -1; 411 return -1;
423 } 412 }
424 413
425 irq = map_gsi_to_irq(gsi, IOAPIC_MAP_ALLOC); 414 irq = mp_map_gsi_to_irq(gsi, IOAPIC_MAP_ALLOC);
426 if (irq < 0) 415 if (irq < 0)
427 return irq; 416 return irq;
428 417
@@ -603,7 +592,7 @@ void __init acpi_pic_sci_set_trigger(unsigned int irq, u16 trigger)
603 592
604int acpi_gsi_to_irq(u32 gsi, unsigned int *irqp) 593int acpi_gsi_to_irq(u32 gsi, unsigned int *irqp)
605{ 594{
606 int irq = map_gsi_to_irq(gsi, IOAPIC_MAP_ALLOC | IOAPIC_MAP_CHECK); 595 int irq = mp_map_gsi_to_irq(gsi, IOAPIC_MAP_ALLOC | IOAPIC_MAP_CHECK);
607 596
608 if (irq >= 0) { 597 if (irq >= 0) {
609 *irqp = irq; 598 *irqp = irq;