amdgpu/pm: Optimize emit_clock_levels for arcturus - part 1
authorDarren Powell <darren.powell@amd.com>
Wed, 29 Mar 2023 20:22:36 +0000 (16:22 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Aug 2023 19:51:17 +0000 (15:51 -0400)
commitf72dcf8b29c49b18444d7ca7b3341d1ef0cb3402
tree52c38e5121653c78cc416103b8faca57a73983cb
parent38498908c5e3ef24d6a1c44994e2a3eaf9ffa4a3
amdgpu/pm: Optimize emit_clock_levels for arcturus - 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 arcturus_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>
drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c