aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorUlf Hansson <[email protected]>2019-10-10 12:01:48 +0200
committerUlf Hansson <[email protected]>2020-01-02 16:50:04 +0100
commitb9f8c26afc405a4a616e765e949bdd551151e41d (patch)
tree4b389419d211106cbcbd1aad082bb4d86dc84dec /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parent49fdcd7577efe9efe863cdbb154f32a96970c1bc (diff)
of: base: Add of_get_cpu_state_node() to get idle states for a CPU node
The CPU's idle state nodes are currently parsed at the common cpuidle DT library, but also when initializing data for specific CPU idle operations, as in the PSCI cpuidle driver case and qcom-spm cpuidle case. To avoid open-coding, let's introduce of_get_cpu_state_node(), which takes the device node for the CPU and the index to the requested idle state node, as in-parameters. In case a corresponding idle state node is found, it returns the node with the refcount incremented for it, else it returns NULL. Moreover, for PSCI there are two options to describe the CPU's idle states [1], either via a flattened description or a hierarchical layout. Hence, let's take both options into account. [1] Documentation/devicetree/bindings/arm/psci.yaml Suggested-by: Sudeep Holla <[email protected]> Co-developed-by: Lina Iyer <[email protected]> Signed-off-by: Lina Iyer <[email protected]> Reviewed-by: Rob Herring <[email protected]> Reviewed-by: Daniel Lezcano <[email protected]> Signed-off-by: Ulf Hansson <[email protected]> Reviewed-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions