x86, hotplug: Handle retrigger irq by the first available CPU
authorFenghua Yu <fenghua.yu@intel.com>
Tue, 13 Nov 2012 19:32:49 +0000 (11:32 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 14 Nov 2012 23:28:11 +0000 (15:28 -0800)
commit8d966a04107e56993a051cd41ead0b4f23ba2414
tree22b94809204a9931c621faf137f57844dc857ea0
parent30242aa6023b71325c6b8addac06faf544a85fd0
x86, hotplug: Handle retrigger irq by the first available CPU

The first cpu in irq cfg->domain is likely to be CPU 0 and may not be available
when CPU 0 is offline. Instead of using CPU 0 to handle retriggered irq, we use
first available CPU which is online and in this irq's domain.

Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Link: http://lkml.kernel.org/r/1352835171-3958-13-git-send-email-fenghua.yu@intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/apic/io_apic.c