diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c index daa55fb06171..3e51e9c89f04 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |||
@@ -1933,14 +1933,6 @@ void amdgpu_pm_compute_clocks(struct amdgpu_device *adev) | |||
1933 | amdgpu_fence_wait_empty(ring); | 1933 | amdgpu_fence_wait_empty(ring); |
1934 | } | 1934 | } |
1935 | 1935 | ||
1936 | mutex_lock(&adev->pm.mutex); | ||
1937 | /* update battery/ac status */ | ||
1938 | if (power_supply_is_system_supplied() > 0) | ||
1939 | adev->pm.ac_power = true; | ||
1940 | else | ||
1941 | adev->pm.ac_power = false; | ||
1942 | mutex_unlock(&adev->pm.mutex); | ||
1943 | |||
1944 | if (adev->powerplay.pp_funcs->dispatch_tasks) { | 1936 | if (adev->powerplay.pp_funcs->dispatch_tasks) { |
1945 | if (!amdgpu_device_has_dc_support(adev)) { | 1937 | if (!amdgpu_device_has_dc_support(adev)) { |
1946 | mutex_lock(&adev->pm.mutex); | 1938 | mutex_lock(&adev->pm.mutex); |