summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-03-27 23:52:28 +0300
committerGeert Uytterhoeven <geert+renesas@glider.be>2023-03-30 17:02:42 +0300
commit6050cb1c7ad40b5673cd6ee7cfd36db3ca9be5fe (patch)
treed8f2981cc78b27ab7284a8f36501ec3702d64319 /tools/perf/scripts/python/exported-sql-viewer.py
parentfe15c26ee26efa11741a7b632e9f23b01aca4cc6 (diff)
downloadlinux-6050cb1c7ad40b5673cd6ee7cfd36db3ca9be5fe.tar.xz
ARM: sh-mobile: Use of_cpu_node_to_id() to read CPU node 'reg'
Replace open coded CPU nodes reading of "reg" and translation to logical ID with of_cpu_node_to_id(). The original code called of_parse_phandle() CONFIG_NR_CPUS times regardless of the length of 'cpus'. Optimize the loop to bail out once of_parse_phandle() fails as the end of 'cpus' property has been reached. Signed-off-by: Rob Herring <robh@kernel.org> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Tested-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/20230327205228.573456-1-robh@kernel.org Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions