amdkfd: Fix accounting of device queues
authorOded Gabbay <oded.gabbay@amd.com>
Sun, 7 Dec 2014 20:27:24 +0000 (22:27 +0200)
committerOded Gabbay <oded.gabbay@amd.com>
Sun, 7 Dec 2014 20:27:24 +0000 (22:27 +0200)
commitb6ffbab813cfc535db5c3815b4eb16dd7d97197c
treea9d299920bba937a3d288a88209720205b0775b7
parentb7392d2247cfe6771f95d256374f1a8e6a6f48d6
amdkfd: Fix accounting of device queues

This patch fixes a device QCM bug, where the number of queues were not
counted correctly for the operation of update queue. The count was incorrect
as there was no regard to the previous state of the queue.

Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c