drm/amdkfd: Fix logic of destroy_queue_nocpsch()
authorBen Goz <ben.goz@amd.com>
Mon, 18 Aug 2014 11:55:59 +0000 (14:55 +0300)
committerOded Gabbay <oded.gabbay@amd.com>
Mon, 18 Aug 2014 11:55:59 +0000 (14:55 +0300)
This patch rewrites destroy_queue_nocpsch() as the current logic that is
implemented in the function is completely flawed.

This function is used only in non-HWS mode.

Signed-off-by: Ben Goz <ben.goz@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c