drm/amdkfd: Fix dqm->queue_count tracking
authorJay Cornwall <jay.cornwall@amd.com>
Mon, 19 Jan 2015 22:08:14 +0000 (16:08 -0600)
committerOded Gabbay <oded.gabbay@amd.com>
Mon, 19 Jan 2015 22:08:14 +0000 (16:08 -0600)
commitb6819cec29cc0088e7398db9ed8377ab8328e012
tree122d2c75ab114635b5d236cad3621d105e8eeeef
parente4bf44b3b558742fb7c58b4d34e206c8942f07e6
drm/amdkfd: Fix dqm->queue_count tracking

dqm->queue_count tracks queues in the active state only. In a few
places this count is modified unconditionally, leading to an incorrect
value when the UPDATE_QUEUE ioctl is used to make a queue inactive.

Signed-off-by: Jay Cornwall <jay.cornwall@amd.com>
Reviewed-by: Ben Goz <ben.goz@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c