aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorDarren Powell <darren.powell@amd.com>2023-04-03 23:37:50 -0400
committerAlex Deucher <alexander.deucher@amd.com>2023-09-06 14:34:00 -0400
commitd62846f778f5dc4c521c4b1532ecf3f2d7fd78d9 (patch)
tree5f706dbcaa661d98970d439d8ff4b8a5ccaaa7db /drivers/gpu/drm/amd/amdgpu/amdgpu.h
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 <darren.powell@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
0 files changed, 0 insertions, 0 deletions