aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorDarren Powell <[email protected]>2023-04-04 03:37:50 +0000
committerAlex Deucher <[email protected]>2023-09-06 18:34:00 +0000
commitd62846f778f5dc4c521c4b1532ecf3f2d7fd78d9 (patch)
tree5f706dbcaa661d98970d439d8ff4b8a5ccaaa7db /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parentamdgpu/pm: Optimize emit_clock_levels for aldebaran - part 1 (diff)
downloadkernel-d62846f778f5dc4c521c4b1532ecf3f2d7fd78d9.tar.gz
kernel-d62846f778f5dc4c521c4b1532ecf3f2d7fd78d9.zip
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 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
0 files changed, 0 insertions, 0 deletions