]> www.infradead.org Git - nvme.git/commit
amdgpu/pm: Optimize emit_clock_levels for aldebaran - part 1
authorDarren Powell <darren.powell@amd.com>
Mon, 3 Apr 2023 18:06:47 +0000 (14:06 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Sep 2023 18:33:54 +0000 (14:33 -0400)
commit2ecf214b45a5969f6bf9c69b97d1bb9a721e0093
tree7f0aa0003370b0257af563a2adee0e58b1867736
parentbc22d9e0ee26c450f8dde69c0720f8da19e14db3
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>
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c