aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/scheduler/sched_entity.c
diff options
context:
space:
mode:
authorChristian König <[email protected]>2022-09-29 13:01:57 +0000
committerChristian König <[email protected]>2022-11-03 11:45:20 +0000
commita82f30b04c6aaefe62cbbfd297e1bb23435b6b3a (patch)
tree761cdcec1d8cb62bd1236c49c5caabc3b435dcf8 /drivers/gpu/drm/scheduler/sched_entity.c
parentdrm/scheduler: rework entity flush, kill and fini (diff)
downloadkernel-a82f30b04c6aaefe62cbbfd297e1bb23435b6b3a.tar.gz
kernel-a82f30b04c6aaefe62cbbfd297e1bb23435b6b3a.zip
drm/scheduler: rename dependency callback into prepare_job
This now matches much better what this is doing. Signed-off-by: Christian König <[email protected]> Reviewed-by: Luben Tuikov <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/scheduler/sched_entity.c')
-rw-r--r--drivers/gpu/drm/scheduler/sched_entity.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/scheduler/sched_entity.c b/drivers/gpu/drm/scheduler/sched_entity.c
index 26ed81acb41e..52bf9056807a 100644
--- a/drivers/gpu/drm/scheduler/sched_entity.c
+++ b/drivers/gpu/drm/scheduler/sched_entity.c
@@ -396,8 +396,8 @@ drm_sched_job_dependency(struct drm_sched_job *job,
if (!xa_empty(&job->dependencies))
return xa_erase(&job->dependencies, job->last_dependency++);
- if (job->sched->ops->dependency)
- return job->sched->ops->dependency(job, entity);
+ if (job->sched->ops->prepare_job)
+ return job->sched->ops->prepare_job(job, entity);
return NULL;
}