diff options
author | Mark Rutland <[email protected]> | 2011-04-27 10:31:51 +0100 |
---|---|---|
committer | Will Deacon <[email protected]> | 2011-08-31 10:50:00 +0100 |
commit | 48957155f8791964d8567479e6986f88343aba38 (patch) | |
tree | 676a538a8d99cd2864525a4b62789ef203e6075c /tools/perf/util/scripting-engines/trace-event-python.c | |
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 <[email protected]>
Reviewed-by: Will Deacon <[email protected]>
Reviewed-by: Jamie Iles <[email protected]>
Reviewed-by: Ashwin Chaugule <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions