diff options
author | Will Deacon <will.deacon@arm.com> | 2012-04-27 11:56:24 (GMT) |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-04-28 10:01:31 (GMT) |
commit | 5e7371ded05adfcfcee44a8bc070bfc37979b8f2 (patch) | |
tree | 04ff2b229f5e0f05a9f93eaa041239268216729c /arch/arm/mach-ux500/id.c | |
parent | 6fa99b7f80b4a7ed2cf616eae393bb6d9d51ba8f (diff) | |
download | linux-5e7371ded05adfcfcee44a8bc070bfc37979b8f2.tar.xz |
ARM: 7406/1: hotplug: copy the affinity mask when forcefully migrating IRQs
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>
Diffstat (limited to 'arch/arm/mach-ux500/id.c')
0 files changed, 0 insertions, 0 deletions