x86: Don't setup ioapic irq for sci twice
authorYinghai Lu <yinghai@kernel.org>
Sat, 9 Oct 2010 05:44:02 +0000 (22:44 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 12 Oct 2010 14:53:40 +0000 (16:53 +0200)
commitfe6dab4e79e82ec35879bfe1a8968b7d15ac0d91
tree391512e410decb068577011942b2887d2ad77a5e
parentf981a3dc1941035a108da1276c448de6b10ddac9
x86: Don't setup ioapic irq for sci twice

The sparseirq rework triggered a warning in the iommu code, which was
caused by setting up ioapic for ACPI irq 9 twice. This function is
solely to handle interrupts which are on a secondary ioapic and
outside the legacy irq range.

Replace the sparse irq_to_desc check with a non ifdeffed version.

[ tglx: Moved it before the ioapic sparse conversion and simplified
   the inverse logic ]

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <4CB00122.3030301@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic/io_apic.c