From: Jacob Pan Date: Thu, 26 Jan 2012 17:32:04 +0000 (+0000) Subject: x86/ioapic: Use legacy_pic to set correct gsi-irq mapping X-Git-Tag: v3.4-rc1~149^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3eea29c189a0e3e2ac921e85fabfa4989ee58d7;p=pandora-kernel.git 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. Signed-off-by: Jacob Pan Signed-off-by: Dirk Brandewie Link: http://lkml.kernel.org/n/tip-kzvj4xp9tmicuoqoh2w05iay@git.kernel.org Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed