x86/ioapic: use legacy_pic to set correct gsi-irq mapping
authorJacob Pan <jacob.jun.pan@linux.intel.com>
Fri, 15 Jul 2011 13:39:06 +0000 (14:39 +0100)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:36:15 +0000 (12:36 -0800)
commit2976000a2cfa2b8a9ee1b017ae72b3931c72ff03
treed2124322d15c5cc891a53d306c7ebd0ca8b6d0d9
parent3c991e29ef231abfcdd81f63550a99bd8387368a
x86/ioapic: use legacy_pic to set correct gsi-irq mapping

Using compile time NR_LEGACY_IRQS causes the wrong gsi-irq mapping on
non-PC platforms, such as Moorestown. This patch uses legacy_pic abstraction
to set the correct number of legacy interrupts at runtime. For Moorestown,
nr_legacy_irqs = 0. We have 1:1 mapping for gsi-irq even within the legacy
irq range.

Change-Id: I3ab904292f1270677a55a08a4c1134681a2efd50
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Dirk Brandewie <dirk.brandewie@gmail.com>
arch/x86/kernel/apic/io_apic.c