OSDN Git Service

arm_pmu: acpi: request IRQs up-front
authorMark Rutland <mark.rutland@arm.com>
Mon, 9 Oct 2017 16:09:05 +0000 (17:09 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 20 Feb 2018 11:34:54 +0000 (11:34 +0000)
commit167e61438da0664cab87c825a6c0cb83510d578e
tree3b05ff3a90e1c171d6aaa98d9bfa3ef33168c8a2
parent84b4be57ae17f8c0b3c1d8629e10f23910838fd7
arm_pmu: acpi: request IRQs up-front

We can't request IRQs in atomic context, so for ACPI systems we'll have
to request them up-front, and later associate them with CPUs.

This patch reorganises the arm_pmu code to do so. As we no longer have
the arm_pmu structure at probe time, a number of prototypes need to be
adjusted, requiring changes to the common arm_pmu code and arm_pmu
platform code.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/arm_pmu.c
drivers/perf/arm_pmu_acpi.c
drivers/perf/arm_pmu_platform.c
include/linux/perf/arm_pmu.h