arm64: fix a migrating irq bug when hotplug cpu
authorYang Yingliang <yangyingliang@huawei.com>
Thu, 24 Sep 2015 09:32:14 +0000 (17:32 +0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 9 Oct 2015 16:40:35 +0000 (17:40 +0100)
commit217d453d473c5ddfd140a06bf9d8575218551020
tree7cc69c16b02e64faf46344e0f4e6cb3afa43ac7c
parenta78afccbbaa6d2df49768cabad8af28a0a84181d
arm64: fix a migrating irq bug when hotplug cpu

When cpu is disabled, all irqs will be migratged to another cpu.
In some cases, a new affinity is different, the old affinity need
to be updated and if irq_set_affinity's return value is IRQ_SET_MASK_OK_DONE,
the old affinity can not be updated. Fix it by using irq_do_set_affinity.

And migrating interrupts is a core code matter, so use the generic
function irq_migrate_all_off_this_cpu() to migrate interrupts in
kernel/irq/migration.c.

Cc: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Russell King - ARM Linux <linux@arm.linux.org.uk>
Cc: Hanjun Guo <hanjun.guo@linaro.org>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/Kconfig
arch/arm64/include/asm/irq.h
arch/arm64/kernel/irq.c
arch/arm64/kernel/smp.c