]> git.baikalelectronics.ru Git - kernel.git/commit
bus: arm-ccn: fix PMU interrupt flags
authorMark Rutland <mark.rutland@arm.com>
Thu, 11 Aug 2016 09:50:41 +0000 (10:50 +0100)
committerPawel Moll <pawel.moll@arm.com>
Fri, 26 Aug 2016 08:16:07 +0000 (09:16 +0100)
commit77f558b5bf79916bfc673814436067aa982dc79b
treeea99c07b63fbc4606adc8e2a060c2318e6c7102f
parent940a083e1c797b41431bf39a0f7a411c15321f25
bus: arm-ccn: fix PMU interrupt flags

Currently the IRQ core is permitted to make the CCN PMU IRQ handler
threaded, and will allow userspace to change the CPU affinity of the
interrupt behind our back. Both of these could violate our
synchronisation requirements with the core perf code, which relies upon
strict CPU affinity and disabling of interrupts to guarantee mutual
exclusion in some cases.

As with the CPU PMU drivers, we should request the interrupt with
IRQF_NOBALANCING and IRQF_NO_THREAD, to avoid these issues.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Pawel Moll <pawel.moll@arm.com>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
drivers/bus/arm-ccn.c