forked from luck/tmp_suning_uos_patched
5e7371ded0
When a CPU is hotplugged off, we migrate any IRQs currently affine to it away and onto another online CPU by calling the irq_set_affinity function of the relevant interrupt controller chip. This function returns either IRQ_SET_MASK_OK or IRQ_SET_MASK_OK_NOCOPY, to indicate whether irq_data.affinity was updated. If we are forcefully migrating an interrupt (because the affinity mask no longer identifies any online CPUs) then we should update the IRQ affinity mask to reflect the new CPU set. Failure to do so can potentially leave /proc/irq/n/smp_affinity identifying only offline CPUs, which may confuse userspace IRQ balancing daemons. This patch updates migrate_one_irq to copy the affinity mask when the interrupt chip returns IRQ_SET_MASK_OK after forcefully changing the affinity of an interrupt. Cc: stable@vger.kernel.org Reported-by: Leif Lindholm <leif.lindholm@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> |
||
---|---|---|
.. | ||
.gitignore | ||
armksyms.c | ||
arthur.c | ||
asm-offsets.c | ||
atags.c | ||
atags.h | ||
bios32.c | ||
calls.S | ||
compat.c | ||
compat.h | ||
cpuidle.c | ||
crash_dump.c | ||
debug.S | ||
devtree.c | ||
dma-isa.c | ||
dma.c | ||
early_printk.c | ||
elf.c | ||
entry-armv.S | ||
entry-common.S | ||
entry-header.S | ||
etm.c | ||
fiq.c | ||
fiqasm.S | ||
ftrace.c | ||
head-common.S | ||
head-nommu.S | ||
head.S | ||
hw_breakpoint.c | ||
init_task.c | ||
insn.c | ||
insn.h | ||
io.c | ||
irq.c | ||
isa.c | ||
iwmmxt.S | ||
jump_label.c | ||
kgdb.c | ||
kprobes-arm.c | ||
kprobes-common.c | ||
kprobes-test-arm.c | ||
kprobes-test-thumb.c | ||
kprobes-test.c | ||
kprobes-test.h | ||
kprobes-thumb.c | ||
kprobes.c | ||
kprobes.h | ||
leds.c | ||
machine_kexec.c | ||
Makefile | ||
module.c | ||
opcodes.c | ||
patch.c | ||
patch.h | ||
perf_event_v6.c | ||
perf_event_v7.c | ||
perf_event_xscale.c | ||
perf_event.c | ||
pj4-cp0.c | ||
pmu.c | ||
process.c | ||
ptrace.c | ||
relocate_kernel.S | ||
return_address.c | ||
sched_clock.c | ||
setup.c | ||
signal.c | ||
signal.h | ||
sleep.S | ||
smp_scu.c | ||
smp_tlb.c | ||
smp_twd.c | ||
smp.c | ||
stacktrace.c | ||
suspend.c | ||
swp_emulate.c | ||
sys_arm.c | ||
sys_oabi-compat.c | ||
tcm.c | ||
tcm.h | ||
thumbee.c | ||
time.c | ||
topology.c | ||
traps.c | ||
unwind.c | ||
vmlinux.lds.S | ||
xscale-cp0.c |