diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2017-03-31 17:51:29 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-04-04 20:40:30 +0300 |
commit | ad4febd9b7a5b3e86090e5223a6ddf946a63998f (patch) | |
tree | b2f1f91b94fcea5fa5e236dcbaef7d0c16a113ac | |
parent | e1b489d207c73e67810659a88c45b8db4bd62773 (diff) | |
download | linux-ad4febd9b7a5b3e86090e5223a6ddf946a63998f.tar.xz |
drm/amdgpu/powerplay: fix locking typo
Fixes: 2a5071056e6a601e ("drm/amd/powerplay: add global PowerPlay mutex.")
Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c index dfd4fe6f0578..6f0ed07bb587 100644 --- a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c +++ b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c @@ -894,7 +894,7 @@ static int pp_dpm_set_sclk_od(void *handle, uint32_t value) mutex_lock(&pp_handle->pp_lock); ret = hwmgr->hwmgr_func->set_sclk_od(hwmgr, value); - mutex_lock(&pp_handle->pp_lock); + mutex_unlock(&pp_handle->pp_lock); return ret; } |