diff options
| author | Darren Powell <[email protected]> | 2023-04-20 23:48:08 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-08-30 19:51:17 +0000 |
| commit | ee78ef046cde9886c935ee4557039c398e372e8c (patch) | |
| tree | 411a9df63df8cf1957d0b469f01dd58e20cf4851 /drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c | |
| parent | amdgpu/pm: Optimize emit_clock_levels for arcturus - part 1 (diff) | |
| download | kernel-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
