diff options
author | Oded Gabbay <oded.gabbay@amd.com> | 2015-01-29 03:32:25 -0500 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@amd.com> | 2015-02-02 02:45:24 -0500 |
commit | 8b58f261113c442717b9d205ab187e51c3823597 (patch) | |
tree | 19450a90925c03415ac0548d38fe52ef4340e52d | |
parent | e36f014edff70fc02b3d3d79cead1d58f289332e (diff) |
drm/amdkfd: Fix bug in accounting of queues
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c index 0d8694f015c1..0fd592799d58 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | |||
@@ -822,7 +822,7 @@ static void destroy_kernel_queue_cpsch(struct device_queue_manager *dqm, | |||
822 | * Unconditionally decrement this counter, regardless of the queue's | 822 | * Unconditionally decrement this counter, regardless of the queue's |
823 | * type. | 823 | * type. |
824 | */ | 824 | */ |
825 | dqm->total_queue_count++; | 825 | dqm->total_queue_count--; |
826 | pr_debug("Total of %d queues are accountable so far\n", | 826 | pr_debug("Total of %d queues are accountable so far\n", |
827 | dqm->total_queue_count); | 827 | dqm->total_queue_count); |
828 | mutex_unlock(&dqm->lock); | 828 | mutex_unlock(&dqm->lock); |