diff options
| author | Darren Powell <[email protected]> | 2023-04-04 03:37:50 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-09-06 18:34:00 +0000 |
| commit | d62846f778f5dc4c521c4b1532ecf3f2d7fd78d9 (patch) | |
| tree | 5f706dbcaa661d98970d439d8ff4b8a5ccaaa7db /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
| parent | amdgpu/pm: Optimize emit_clock_levels for aldebaran - part 1 (diff) | |
| download | kernel-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
