]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Wed, 17 May 2017 16:41:06 +0000 (13:41 -0300)
commita5fca048de7c1760e1be78f1e9eb36ee008db15a
tree378cc0308c654a0c547c9764fec3598d5c53ab39
parent84c2c9a02bc12af93e92f223641db7465889ce6b
drivers/perf: arm_pmu: split cpu-local irq request/free

BugLink: https://bugs.launchpad.net/bugs/1689661
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>
(cherry picked from commit 0e2663d921ea1861540cd7f331d8e2c7668aa31f)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/perf/arm_pmu.c