drm/amd/pm: remove logically dead code for renoir
authorJesse Zhang <jesse.zhang@amd.com>
Wed, 8 May 2024 10:49:30 +0000 (18:49 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 May 2024 20:11:53 +0000 (16:11 -0400)
The switch governing value clk_type cannot be SMU_GFXCLK and SMU_SCLK.

Fixes: ca55f459f5ad ("drm/amd/pm: add the fine grain tuning function for Renoir")
Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c

index aeeba0d..cc0504b 100644 (file)
@@ -585,8 +585,6 @@ static int renoir_print_clk_levels(struct smu_context *smu,
        }
 
        switch (clk_type) {
-       case SMU_GFXCLK:
-       case SMU_SCLK:
        case SMU_SOCCLK:
        case SMU_MCLK:
        case SMU_DCEFCLK: