diff options
author | 2016-10-21 16:30:10 -0400 | |
---|---|---|
committer | 2016-10-24 17:00:10 -0400 | |
commit | 4560738a8e9d5c0a053b8b896487b83e6948f4a1 (patch) | |
tree | 535553648172e724012858b1a7fa61f624b0c3f3 /drivers/gpu/drm/amd/amdgpu/si_dpm.c | |
parent | drm/amdgpu: cancel reset work on fini (diff) | |
download | wireguard-linux-4560738a8e9d5c0a053b8b896487b83e6948f4a1.tar.xz wireguard-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/si_dpm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/si_dpm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/si_dpm.c b/drivers/gpu/drm/amd/amdgpu/si_dpm.c index 3de7bca5854b..ee77e9cb55b1 100644 --- a/drivers/gpu/drm/amd/amdgpu/si_dpm.c +++ b/drivers/gpu/drm/amd/amdgpu/si_dpm.c @@ -7777,6 +7777,8 @@ static int si_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); si_dpm_fini(adev); |