]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amd/powerplay: use PP_CAP macro for disable_mclk_switching_for_frame_lock
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Feb 2018 19:22:46 +0000 (14:22 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:20:20 +0000 (14:20 -0500)
Rather than open coding it.

Reviewed-by: Eric Huang <JinhuiEric.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c

index 03a93b0eff3884b90403b81506c35dc94ebba14c..6a153ad1b9420fd5c728afb411a26f42b8953fe2 100644 (file)
@@ -3165,10 +3165,10 @@ static int vega10_apply_state_adjust_rules(struct pp_hwmgr *hwmgr,
                minimum_clocks.memoryClock = stable_pstate_mclk;
        }
 
-       disable_mclk_switching_for_frame_lock = phm_cap_enabled(
-                                   hwmgr->platform_descriptor.platformCaps,
-                                   PHM_PlatformCaps_DisableMclkSwitchingForFrameLock);
-       disable_mclk_switching_for_vr = PP_CAP(PHM_PlatformCaps_DisableMclkSwitchForVR);
+       disable_mclk_switching_for_frame_lock =
+               PP_CAP(PHM_PlatformCaps_DisableMclkSwitchingForFrameLock);
+       disable_mclk_switching_for_vr =
+               PP_CAP(PHM_PlatformCaps_DisableMclkSwitchForVR);
        force_mclk_high = PP_CAP(PHM_PlatformCaps_ForceMclkHigh);
 
        disable_mclk_switching = (info.display_count > 1) ||