]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/perf: arm_pmu: split cpu-local irq request/free
authorMark Rutland <mark.rutland@arm.com>
Tue, 11 Apr 2017 08:39:51 +0000 (09:39 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 11 Apr 2017 15:29:53 +0000 (16:29 +0100)
commitc4a2a55dcaaa237ae615bfbc9e60c06998f5f136
treec3cd5bba53d72874786b7d7866a91ee6750c76bb
parent0690281f0689054453496ca147e330cfc37b04fe
drivers/perf: arm_pmu: split cpu-local irq request/free

Currently we have functions to request/free all IRQs for a given PMU.
While this works today, this won't work for ACPI, where we don't know
the full set of IRQs up front, and need to request them separately.

To enable supporting ACPI, this patch splits out the cpu-local
request/free into new functions, allowing us to request/free individual
IRQs.

As this makes it possible/necessary to request a PPI once per cpu, an
additional check is added to detect mismatched PPIs. This shouldn't
matter for the DT / platform case, as we check this when parsing.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Jeremy Linton <jeremy.linton@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/arm_pmu.c