drm/amdkfd: Move sdma_queue_id calculation into allocate_sdma_queue()
authorYong Zhao <Yong.Zhao@amd.com>
Mon, 14 Jan 2019 22:36:26 +0000 (17:36 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 May 2019 17:21:02 +0000 (12:21 -0500)
commite78579aab7c3e112b85bf92d76432b917c841b5b
tree62c5ee35270a0b9fe28851ab0093c3503017ba42
parent0803e7a9e850f9d6397c594d6c6deac9b2b6d696
drm/amdkfd: Move sdma_queue_id calculation into allocate_sdma_queue()

This avoids duplicated code.

Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c