drm/amdgpu: cleanup and simplify amdgpu_vmid_grab_reserved
authorChristian König <christian.koenig@amd.com>
Wed, 31 Jan 2018 10:56:53 +0000 (11:56 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:16 +0000 (14:19 -0500)
commitcb5372ace9a3eaf9c0f8cd950bf68c2f3ce1c511
treebcebbebc93f0fffb765be9f00f4fd5087dc30cb9
parent782dcfdfd9c1c30e0b8304915297cef665a9867c
drm/amdgpu: cleanup and simplify amdgpu_vmid_grab_reserved

Drop the "_locked" from the name, cleanup and simplify the logic a bit.
Add missing comments.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c