aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorDarren Powell <[email protected]>2023-04-03 23:37:50 -0400
committerAlex Deucher <[email protected]>2023-09-06 14:34:00 -0400
commitd62846f778f5dc4c521c4b1532ecf3f2d7fd78d9 (patch)
tree5f706dbcaa661d98970d439d8ff4b8a5ccaaa7db /tools/perf/scripts/python/flamegraph.py
parent2ecf214b45a5969f6bf9c69b97d1bb9a721e0093 (diff)
amdgpu/pm: Optimize emit_clock_levels for aldebaran - part 2
Use variables to remove ternary expression in print statement and improve readability. This will help to optimize the code duplication in the switch statement Also Changed: replaced single_dpm_table->count as iterator in for loops with safer clocks_num_levels value replaced dpm_table.value usage with local var clocks_mhz Signed-off-by: Darren Powell <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions