]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/amdgpu: clean up the amdgpu_userq_active()
authorPrike Liang <Prike.Liang@amd.com>
Tue, 17 Jun 2025 07:37:31 +0000 (15:37 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Sep 2025 20:18:18 +0000 (16:18 -0400)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h

index f8648e169f8b2665467726555b0465ccc1d70fce..02ab788995b090e82d1fcd73cc44f4fabc47556c 100644 (file)
@@ -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)
 {
index 1bd84f4cce781d0f87299764a8297f34d4284345..da7e75cda4f83e6615b95c679b9a9f20695a7555 100644 (file)
@@ -120,8 +120,6 @@ void amdgpu_userq_destroy_object(struct amdgpu_userq_mgr *uq_mgr,
 void amdgpu_userq_evict(struct amdgpu_userq_mgr *uq_mgr,
                        struct amdgpu_eviction_fence *ev_fence);
 
-int amdgpu_userq_active(struct amdgpu_userq_mgr *uq_mgr);
-
 void amdgpu_userq_ensure_ev_fence(struct amdgpu_userq_mgr *userq_mgr,
                                  struct amdgpu_eviction_fence_mgr *evf_mgr);