diff options
author | Mark Rutland <[email protected]> | 2011-06-22 15:30:51 +0100 |
---|---|---|
committer | Russell King <[email protected]> | 2011-06-29 10:27:08 +0100 |
commit | f12482c9393da2c1f5cb3217f29aa79c653dd980 (patch) | |
tree | 3963f2607ea13feb1d384df5da7727148101d652 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 090ab3ff8ebb842c0f159d34d57d6e51bd94ace1 (diff) |
ARM: 6974/1: pmu: refactor reservation
Currently, PMU platform_device reservation relies on some minor abuse
of the platform_device::id field for determining the type of PMU. This
is problematic for device tree based probing, where the ID cannot be
controlled.
This patch removes reliance on the id field, and depends on each PMU's
platform driver to figure out which type it is. As all PMUs handled by
the current platform_driver name "arm-pmu" are CPU PMUs, this
convention is hardcoded. New PMU types can be supported through the use
of {of,platform}_device_id tables
Signed-off-by: Mark Rutland <[email protected]>
Acked-by: Jamie Iles <[email protected]>
Acked-by: Will Deacon <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Signed-off-by: Russell King <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions