x86/pci: update pirq_enable_irq() to setup io apic routing
authorYinghai Lu <yinghai@kernel.org>
Wed, 6 May 2009 17:10:06 +0000 (10:10 -0700)
committerIngo Molnar <mingo@elte.hu>
Mon, 11 May 2009 08:35:10 +0000 (10:35 +0200)
commitb9c61b70075c87a8612624736faf4a2de5b1ed30
tree40f4ae74461d20be77b4b260e5384fe937bc5bec
parent5ef2183768bb7d64b85eccbfa1537a61cbefa97c
x86/pci: update pirq_enable_irq() to setup io apic routing

So we can set io apic routing only when enabling the device irq.

This is advantageous for IRQ descriptor allocation affinity: if we set up
the IO-APIC entry later, we have a chance to allocate the IRQ descriptor
later and know which device it is on and can set affinity accordingly.

[ Impact: standardize/enhance irq-enabling sequence for mptable irqs ]

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: Len Brown <lenb@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
LKML-Reference: <4A01C46E.8000501@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic/io_apic.c
arch/x86/pci/irq.c