summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
diff options
context:
space:
mode:
authorHuang Rui <ray.huang@amd.com>2018-02-27 21:53:00 +0800
committerAlex Deucher <alexander.deucher@amd.com>2018-05-15 13:43:40 -0500
commit00f54b97d7de97c41cffaad83d32a9bf03edad89 (patch)
treed7291094956e528246ae7e8a082d6a7a2e1cc1bb /drivers/gpu/drm/amd/amdgpu/ci_dpm.c
parent775b0c11e27fce7d204d2911220fd7eebcc074d0 (diff)
downloadop-kernel-dev-00f54b97d7de97c41cffaad83d32a9bf03edad89.zip
op-kernel-dev-00f54b97d7de97c41cffaad83d32a9bf03edad89.tar.gz
drm/amdgpu: use pp_feature member to store the mask
Signed-off-by: Huang Rui <ray.huang@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/ci_dpm.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/ci_dpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c b/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
index f48168f..a266dcf 100644
--- a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
+++ b/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
@@ -5903,7 +5903,7 @@ static int ci_dpm_init(struct amdgpu_device *adev)
pi->pcie_dpm_key_disabled = 0;
pi->thermal_sclk_dpm_enabled = 0;
- if (amdgpu_pp_feature_mask & PP_SCLK_DEEP_SLEEP_MASK)
+ if (adev->powerplay.pp_feature & PP_SCLK_DEEP_SLEEP_MASK)
pi->caps_sclk_ds = true;
else
pi->caps_sclk_ds = false;
OpenPOWER on IntegriCloud