aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
diff options
context:
space:
mode:
authorPrike Liang <Prike.Liang@amd.com>2025-06-17 15:37:31 +0800
committerAlex Deucher <alexander.deucher@amd.com>2025-09-09 16:18:18 -0400
commitd426a5b6da2bba04566acfad94b6921141a2bf85 (patch)
treeca7af2ce1f1f190e72687bcb8e2abaa45523ed9c /drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
parentdrm/amdgpu/jpeg: Move parse_cs to amdgpu_jpeg.c (diff)
downloadwireguard-linux-d426a5b6da2bba04566acfad94b6921141a2bf85.tar.xz
wireguard-linux-d426a5b6da2bba04566acfad94b6921141a2bf85.zip
drm/amdgpu: clean up the amdgpu_userq_active()
This is no invocation for amdgpu_userq_active(). Signed-off-by: Prike Liang <Prike.Liang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
index f8648e169f8b..02ab788995b0 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
@@ -112,22 +112,6 @@ amdgpu_userq_cleanup(struct amdgpu_userq_mgr *uq_mgr,
kfree(queue);
}
-int
-amdgpu_userq_active(struct amdgpu_userq_mgr *uq_mgr)
-{
- struct amdgpu_usermode_queue *queue;
- int queue_id;
- int ret = 0;
-
- mutex_lock(&uq_mgr->userq_mutex);
- /* Resume all the queues for this process */
- idr_for_each_entry(&uq_mgr->userq_idr, queue, queue_id)
- ret += queue->state == AMDGPU_USERQ_STATE_MAPPED;
-
- mutex_unlock(&uq_mgr->userq_mutex);
- return ret;
-}
-
static struct amdgpu_usermode_queue *
amdgpu_userq_find(struct amdgpu_userq_mgr *uq_mgr, int qid)
{