mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-02 09:16:41 +09:00
drm/amd/powerplay: Tidy up cz_dpm_powerup_vce()
Use PP_CAP macro. Signed-off-by: Tom St Denis <tom.stdenis@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
9e59976675
commit
09da3c0e5b
@@ -1369,8 +1369,7 @@ int cz_dpm_powerdown_vce(struct pp_hwmgr *hwmgr)
|
||||
|
||||
int cz_dpm_powerup_vce(struct pp_hwmgr *hwmgr)
|
||||
{
|
||||
if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
|
||||
PHM_PlatformCaps_VCEPowerGating))
|
||||
if (PP_CAP(PHM_PlatformCaps_VCEPowerGating))
|
||||
return smum_send_msg_to_smc(hwmgr,
|
||||
PPSMC_MSG_VCEPowerON);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user