]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Move the mutex lock/unlock out
authorAlex Jivin <alex.jivin@amd.com>
Mon, 6 Jul 2020 15:07:19 +0000 (11:07 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Jul 2020 13:02:43 +0000 (09:02 -0400)
commit182f35dc6d645e5080663134b101ac429c0b842e
treeddabe8681562a2569c0a56cd9a7621b069cfa2af
parentb1bc018f36235c695de0620e5bafc17bfdca48f9
drm/amdgpu: Move the mutex lock/unlock out

Move the mutext lock/unlock outside of the if(),
as the mutex is always taken: either in the if()
branch or in the else branch.

Signed-off-by: Alex Jivin <alex.jivin@amd.com>
Suggested-By: Luben Tukov <luben.tuikov@amd.com>
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c