Patchwork Skip looking for ioapic overrides when ioapics are not present

login
register
mail settings
Submitter Eric W. Biederman
Date June 6, 2010, 3:56 a.m.
Message ID <m17hmcke5m.fsf@fess.ebiederm.org>
Download mbox | patch
Permalink /patch/104501/
State New, archived
Headers show

Comments

Patch

diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
index 33f3563..226a6d1 100644
--- a/arch/x86/kernel/apic/io_apic.c
+++ b/arch/x86/kernel/apic/io_apic.c
@@ -4066,6 +4066,9 @@  int acpi_get_override_irq(u32 gsi, int *trigger, int *polarity)
 {
 	int ioapic, pin, idx;
 
+	if (acpi_irq_model != ACPI_IRQ_MODEL_IOAPIC)
+		return -1;
+
 	if (skip_ioapic_setup)
 		return -1;