drivers/perf: arm_pmu: add ACPI framework
authorMark Rutland <[email protected]>
Tue, 11 Apr 2017 08:39:55 +0000 (09:39 +0100)
committerWill Deacon <[email protected]>
Tue, 11 Apr 2017 15:29:54 +0000 (16:29 +0100)
commit45736a72fb79b204c1fbdb08a1e1a2aa52c7281a
treef5d754d6d02135ec024e9253fbf51d759c202edf
parente0013aed489e7ebbba59d7ada2ff5551ac4b61c6
drivers/perf: arm_pmu: add ACPI framework

This patch adds framework code to handle parsing PMU data out of the
MADT, sanity checking this, and managing the association of CPUs (and
their interrupts) with appropriate logical PMUs.

For the time being, we expect that only one PMU driver (PMUv3) will make
use of this, and we simply pass in a single probe function.

This is based on an earlier patch from Jeremy Linton.

Signed-off-by: Mark Rutland <[email protected]>
Tested-by: Jeremy Linton <[email protected]>
Cc: Will Deacon <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
drivers/perf/Kconfig
drivers/perf/Makefile
drivers/perf/arm_pmu.c
drivers/perf/arm_pmu_acpi.c [new file with mode: 0644]
include/linux/cpuhotplug.h
include/linux/perf/arm_pmu.h