Skip to contentSkip to conversation

: Properly unregister legacy interrupts

PATCH New Prarit Bhargava 1 participant 1 message May 14, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : Properly unregister legacy interrupts

acpi_unregister_gsi() should "undo" what acpi_register_gsi() does.

On systems that have legacy interrupts, acpi_unregister_gsi erroneously calls iosapci_unregister_intr() which is wrong to do and causes a loud warning.

acpi_unregister_gsi() should just return in these cases.

arch/ia64/kernel/acpi.c +3 -0
index 78f28d8..f66de49 100644
@@ -620,6 +620,9 @@ void acpi_unregister_gsi(u32 gsi)
 	if (acpi_irq_model = ACPI_IRQ_MODEL_PLATFORM)
 		return;
 
+	if (has_8259 && gsi < 16)
+		return;
+
 	iosapic_unregister_intr(gsi);
 }