drm/amdgpu: restructure amdgpu_vmid_grab
authorChristian König <christian.koenig@amd.com>
Wed, 31 Jan 2018 13:24:45 +0000 (14:24 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:17 +0000 (14:19 -0500)
commit58592a095c981a002137221205411f538b9f0fb9
treea5f1e053f250a1dd25bc732ac4f9c24e7965074d
parent25ddf75bb3aa5e1f47eb9c04f0d50bf37269702b
drm/amdgpu: restructure amdgpu_vmid_grab

Now that we have the different cases for grabbing a VMID in separate
functions, restructure the top level function to only have one place
where VMIDs are assigned to jobs.

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