summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/kv_dpm.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2016-10-21 16:30:10 -0400
committerAlex Deucher <alexander.deucher@amd.com>2016-10-24 17:00:10 -0400
commit4560738a8e9d5c0a053b8b896487b83e6948f4a1 (patch)
tree535553648172e724012858b1a7fa61f624b0c3f3 /drivers/gpu/drm/amd/amdgpu/kv_dpm.c
parente8d7515a983b5ccf6681db0ade3714e837581a97 (diff)
downloadlinux-4560738a8e9d5c0a053b8b896487b83e6948f4a1.tar.gz
linux-4560738a8e9d5c0a053b8b896487b83e6948f4a1.tar.bz2
linux-4560738a8e9d5c0a053b8b896487b83e6948f4a1.zip
drm/amdgpu/dpm: flush any thermal work on fini
Flush any outstanding thermal work before tearing down the dpm driver. Reviewed-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/kv_dpm.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/kv_dpm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/kv_dpm.c b/drivers/gpu/drm/amd/amdgpu/kv_dpm.c
index f8618a3881a8..71d2856222fa 100644
--- a/drivers/gpu/drm/amd/amdgpu/kv_dpm.c
+++ b/drivers/gpu/drm/amd/amdgpu/kv_dpm.c
@@ -3063,6 +3063,8 @@ static int kv_dpm_sw_fini(void *handle)
{
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
+ flush_work(&adev->pm.dpm.thermal.work);
+
mutex_lock(&adev->pm.mutex);
amdgpu_pm_sysfs_fini(adev);
kv_dpm_fini(adev);