Skip to content

Commit d426a5b

Browse files
Prike Liangalexdeucher
authored andcommitted
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>
1 parent 28f75f9 commit d426a5b

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -112,22 +112,6 @@ amdgpu_userq_cleanup(struct amdgpu_userq_mgr *uq_mgr,
112112
kfree(queue);
113113
}
114114

115-
int
116-
amdgpu_userq_active(struct amdgpu_userq_mgr *uq_mgr)
117-
{
118-
struct amdgpu_usermode_queue *queue;
119-
int queue_id;
120-
int ret = 0;
121-
122-
mutex_lock(&uq_mgr->userq_mutex);
123-
/* Resume all the queues for this process */
124-
idr_for_each_entry(&uq_mgr->userq_idr, queue, queue_id)
125-
ret += queue->state == AMDGPU_USERQ_STATE_MAPPED;
126-
127-
mutex_unlock(&uq_mgr->userq_mutex);
128-
return ret;
129-
}
130-
131115
static struct amdgpu_usermode_queue *
132116
amdgpu_userq_find(struct amdgpu_userq_mgr *uq_mgr, int qid)
133117
{

drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@ void amdgpu_userq_destroy_object(struct amdgpu_userq_mgr *uq_mgr,
120120
void amdgpu_userq_evict(struct amdgpu_userq_mgr *uq_mgr,
121121
struct amdgpu_eviction_fence *ev_fence);
122122

123-
int amdgpu_userq_active(struct amdgpu_userq_mgr *uq_mgr);
124-
125123
void amdgpu_userq_ensure_ev_fence(struct amdgpu_userq_mgr *userq_mgr,
126124
struct amdgpu_eviction_fence_mgr *evf_mgr);
127125

0 commit comments

Comments
 (0)