]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 6742/1: pmu: avoid setting IRQ affinity on UP systems
authorWill Deacon <will.deacon@arm.com>
Fri, 18 Feb 2011 15:21:06 +0000 (16:21 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 19 Feb 2011 11:24:05 +0000 (11:24 +0000)
commite26b9cceac58a3d10f9fcb10030f734b25e338cd
tree2fb96d55e39d687d378822b1598dca72c79b720e
parent6bb152aa28fd2ef0606920d9c5d5f30428fa83e9
ARM: 6742/1: pmu: avoid setting IRQ affinity on UP systems

Now that we can execute a CONFIG_SMP kernel on a uniprocessor system,
extra care has to be taken in the PMU IRQ affinity setting code to
ensure that we don't always fail to initialise.

This patch changes the CPU PMU initialisation code so that when we
only have a single IRQ, whose affinity can not be changed at the
controller, we report success (0) rather than -EINVAL.

Reported-by: Avik Sil <avik.sil@linaro.org>
Acked-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/pmu.c