summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/perf_event_v6.c
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2011-04-27 10:31:51 +0100
committerWill Deacon <will.deacon@arm.com>2011-08-31 10:50:00 +0100
commit48957155f8791964d8567479e6986f88343aba38 (patch)
tree676a538a8d99cd2864525a4b62789ef203e6075c /arch/arm/kernel/perf_event_v6.c
parent5f12a761937373d2f9b557d7519e6f1cf738b8f0 (diff)
downloadop-kernel-dev-48957155f8791964d8567479e6986f88343aba38.zip
op-kernel-dev-48957155f8791964d8567479e6986f88343aba38.tar.gz
ARM: perf: only register a CPU PMU when present
Currently, an "empty" struct pmu is registered as the CPU PMU, regardless of whether there is a physical PMU. This burdens the accessor functions with checks to see whether a PMU is actually present. This patch changes initialisation to register a PMU only if there is a supported PMU present, and removes the checks that this change makes redundant. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Reviewed-by: Will Deacon <will.deacon@arm.com> Reviewed-by: Jamie Iles <jamie@jamieiles.com> Reviewed-by: Ashwin Chaugule <ashwinc@codeaurora.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm/kernel/perf_event_v6.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud