Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Prike Liang and committed by
Alex Deucher
d426a5b6 28f75f9b

-18
-16
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
··· 112 112 kfree(queue); 113 113 } 114 114 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 - 131 115 static struct amdgpu_usermode_queue * 132 116 amdgpu_userq_find(struct amdgpu_userq_mgr *uq_mgr, int qid) 133 117 {
-2
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h
··· 120 120 void amdgpu_userq_evict(struct amdgpu_userq_mgr *uq_mgr, 121 121 struct amdgpu_eviction_fence *ev_fence); 122 122 123 - int amdgpu_userq_active(struct amdgpu_userq_mgr *uq_mgr); 124 - 125 123 void amdgpu_userq_ensure_ev_fence(struct amdgpu_userq_mgr *userq_mgr, 126 124 struct amdgpu_eviction_fence_mgr *evf_mgr); 127 125