[PATCH] drm/amdgpu/powerplay: fix locking typo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 31.03.2017 um 16:54 schrieb Alex Deucher:
> Fixes: 2a5071056e6a601e ("drm/amd/powerplay: add global PowerPlay mutex.")
> Reported-by: Julia Lawall <julia.lawall at lip6.fr>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>

Reviewed-by: Christian König <christian.koenig at amd.com>

> ---
>   drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
> index dfd4fe6..6f0ed07 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;
>   }
>   




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux