diff options
author | Mark Rutland <mark.rutland@arm.com> | 2011-04-27 10:31:51 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2011-08-31 10:50:00 +0100 |
commit | 48957155f8791964d8567479e6986f88343aba38 (patch) | |
tree | 676a538a8d99cd2864525a4b62789ef203e6075c /tools/perf/scripts/python | |
parent | 5f12a761937373d2f9b557d7519e6f1cf738b8f0 (diff) |
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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions