aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorDarren Powell <[email protected]>2023-04-03 18:06:47 +0000
committerAlex Deucher <[email protected]>2023-09-06 18:33:54 +0000
commit2ecf214b45a5969f6bf9c69b97d1bb9a721e0093 (patch)
tree7f0aa0003370b0257af563a2adee0e58b1867736 /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parentamdgpu/pm: Replace print_clock_levels with emit_clock_levels for aldebaran (diff)
downloadkernel-2ecf214b45a5969f6bf9c69b97d1bb9a721e0093.tar.gz
kernel-2ecf214b45a5969f6bf9c69b97d1bb9a721e0093.zip
amdgpu/pm: Optimize emit_clock_levels for aldebaran - part 1
Use variables to remove the multiple nested ternary expressions and improve readability. This will help to optimize the code duplication in the switch statement Also Changed: Modify function aldebaran_get_clk_table to void function as it always returns 0 Use const string "attempt_string" to cut down on repetition 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