]> 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)
commit2e5886a80d5e80d165da6c4c5d5ba0a056c14030
treec3cd5bba53d72874786b7d7866a91ee6750c76bb
parentf6d00ada94c7dcca53b53f51451504f4fd03d579
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