aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
diff options
context:
space:
mode:
authorDarren Powell <[email protected]>2023-04-20 23:48:08 +0000
committerAlex Deucher <[email protected]>2023-08-30 19:51:17 +0000
commitee78ef046cde9886c935ee4557039c398e372e8c (patch)
tree411a9df63df8cf1957d0b469f01dd58e20cf4851 /drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
parentamdgpu/pm: Optimize emit_clock_levels for arcturus - part 1 (diff)
downloadkernel-ee78ef046cde9886c935ee4557039c398e372e8c.tar.gz
kernel-ee78ef046cde9886c935ee4557039c398e372e8c.zip
amdgpu/pm: Optimize emit_clock_levels for arcturus - 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_ids.c')
0 files changed, 0 insertions, 0 deletions