]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[IA64] Properly unregister legacy interrupts
authorPrarit Bhargava <prarit@redhat.com>
Wed, 14 May 2008 16:00:24 +0000 (12:00 -0400)
committerTony Luck <tony.luck@intel.com>
Wed, 14 May 2008 23:00:14 +0000 (16:00 -0700)
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.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/acpi.c

index 6ff6815d34ef9166be93f4580829416a54ff7ffd..853d1f11be005f9e0b3443d8b33cdcbd72e53edd 100644 (file)
@@ -627,6 +627,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);
 }