diff options
author | Oded Gabbay <oded.gabbay@amd.com> | 2015-01-29 11:32:25 +0300 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@amd.com> | 2015-02-02 10:45:24 +0300 |
commit | 8b58f261113c442717b9d205ab187e51c3823597 (patch) | |
tree | 19450a90925c03415ac0548d38fe52ef4340e52d /drivers | |
parent | e36f014edff70fc02b3d3d79cead1d58f289332e (diff) | |
download | linux-8b58f261113c442717b9d205ab187e51c3823597.tar.xz |
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>
Diffstat (limited to 'drivers')
-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, * Unconditionally decrement this counter, regardless of the queue's * type. */ - dqm->total_queue_count++; + dqm->total_queue_count--; pr_debug("Total of %d queues are accountable so far\n", dqm->total_queue_count); mutex_unlock(&dqm->lock); |