diff options
author | 2023-04-03 14:06:47 -0400 | |
---|---|---|
committer | 2023-09-06 14:33:54 -0400 | |
commit | 2ecf214b45a5969f6bf9c69b97d1bb9a721e0093 (patch) | |
tree | 7f0aa0003370b0257af563a2adee0e58b1867736 /drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | |
parent | amdgpu/pm: Replace print_clock_levels with emit_clock_levels for aldebaran (diff) | |
download | linux-rng-2ecf214b45a5969f6bf9c69b97d1bb9a721e0093.tar.xz linux-rng-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 <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_vcn.c')
0 files changed, 0 insertions, 0 deletions