irq: change io_apic_set_pci_routing() to use device parameter
authorYinghai Lu <yinghai@kernel.org>
Tue, 28 Apr 2009 01:01:50 +0000 (18:01 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 28 Apr 2009 10:21:18 +0000 (12:21 +0200)
commit024154cfdd802654cb236a18c78b6e37351e2c49
tree03fa7789e410e48b105ec010e6827fad27d7dc95
parenta2f809b08ae4dddc1015c7dcd8659e5729e45b3e
irq: change io_apic_set_pci_routing() to use device parameter

Make actual use of the device parameter passed down to
io_apic_set_pci_routing() - to have the IRQ descriptor
on the home node of the device.

If no device has been passed down, we assume it's a platform
device and use the boot node ID for the IRQ descriptor.

[ Impact: optimization, make IO-APIC code more NUMA aware ]

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
LKML-Reference: <49F6557E.3080101@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic/io_apic.c