summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
index ecd49cf15b2a..2be1e54b7899 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
@@ -432,11 +432,11 @@ amdgpu_userqueue_resume_all(struct amdgpu_userq_mgr *uq_mgr)
/* Resume all the queues for this process */
idr_for_each_entry(&uq_mgr->userq_idr, queue, queue_id) {
userq_funcs = adev->userq_funcs[queue->queue_type];
- ret = userq_funcs->resume(uq_mgr, queue);
+ ret = userq_funcs->map(uq_mgr, queue);
}
if (ret)
- DRM_ERROR("Failed to resume all the queue\n");
+ DRM_ERROR("Failed to map all the queues\n");
return ret;
}
@@ -587,14 +587,14 @@ amdgpu_userqueue_suspend_all(struct amdgpu_userq_mgr *uq_mgr)
int queue_id;
int ret = 0;
- /* Try to suspend all the queues in this process ctx */
+ /* Try to unmap all the queues in this process ctx */
idr_for_each_entry(&uq_mgr->userq_idr, queue, queue_id) {
userq_funcs = adev->userq_funcs[queue->queue_type];
- ret += userq_funcs->suspend(uq_mgr, queue);
+ ret += userq_funcs->unmap(uq_mgr, queue);
}
if (ret)
- DRM_ERROR("Couldn't suspend all the queues\n");
+ DRM_ERROR("Couldn't unmap all the queues\n");
return ret;
}