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)
commitc2e1b3a496332b90d073bc9dddd3324d660fca24
treeac0e21dde1393271dc7ec073587d645869234a62
parent04df25d123945a2261a7755673962257241b1394
drm/amdkfd: Fix logic of destroy_queue_nocpsch()

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