OSDN Git Service

arm/arm64: pmu: Distinguish percpu irq and percpu_devid irq
authorJulien Thierry <julien.thierry@arm.com>
Fri, 13 Oct 2017 11:26:45 +0000 (12:26 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 24 Oct 2017 15:04:05 +0000 (16:04 +0100)
commit611479c79a94e6713bc044b0410aa8b867375d17
tree4e6b947230cafaa7e10c47bdfc5ca30d0e066f41
parent08395c7f4d9f5808b5754a0dbed969f378bde0c3
arm/arm64: pmu: Distinguish percpu irq and percpu_devid irq

arm_pmu interrupts are maked as PERCPU even when these are not local
physical interrupts to a single CPU. When using non-local interrupts,
interrupts marked as PERCPU will not get freed not disabled properly
by the PMU driver.

Check if interrupts are local to a single CPU with PERCPU_DEVID since
this is what the PMU driver really needs to know.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Julien Thierry <julien.thierry@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/arm_pmu.c
drivers/perf/arm_pmu_platform.c