drm/amd/powerplay: check whether enable dpm in powerplay.

Change-Id: I0a2dbf8ef7d4a3e9788fe211fc5964dd2487c519
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
This commit is contained in:
Rex Zhu 2015-11-23 14:50:10 +08:00 committed by Alex Deucher
parent 7ad4e7f093
commit 1ea6c1e8e4

View File

@ -145,8 +145,11 @@ static int amdgpu_pp_sw_init(void *handle)
#ifdef CONFIG_DRM_AMD_POWERPLAY
if (adev->pp_enabled) {
adev->pm.dpm_enabled = true;
amdgpu_pm_sysfs_init(adev);
if (amdgpu_dpm == 0)
adev->pm.dpm_enabled = false;
else
adev->pm.dpm_enabled = true;
}
#endif