diff options
author | Darren Powell <darren.powell@amd.com> | 2023-04-03 14:06:47 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-09-06 14:33:54 -0400 |
commit | 2ecf214b45a5969f6bf9c69b97d1bb9a721e0093 (patch) | |
tree | 7f0aa0003370b0257af563a2adee0e58b1867736 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
parent | bc22d9e0ee26c450f8dde69c0720f8da19e14db3 (diff) | |
download | linux-2ecf214b45a5969f6bf9c69b97d1bb9a721e0093.tar.gz linux-2ecf214b45a5969f6bf9c69b97d1bb9a721e0093.tar.bz2 linux-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_vm.c')
0 files changed, 0 insertions, 0 deletions