Skip to content

Commit dc4afc0

Browse files
committed
drm/v3d: Remove v3d->cpu_job
CPU jobs, like Cache Clean jobs, execute synchronously once the DRM scheduler starts running them. Consequently, a global `v3d->cpu_job` variable is unnecessary, as everything is managed within the `v3d_cpu_job_run()` function. This commit removes the `v3d->cpu_job` pointer, as it is not needed. Signed-off-by: Maíra Canal <[email protected]> Reviewed-by: Jose Maria Casanova Crespo <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent c5e3306 commit dc4afc0

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

drivers/gpu/drm/v3d/v3d_drv.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ struct v3d_dev {
147147
struct v3d_render_job *render_job;
148148
struct v3d_tfu_job *tfu_job;
149149
struct v3d_csd_job *csd_job;
150-
struct v3d_cpu_job *cpu_job;
151150

152151
struct v3d_queue_state queue[V3D_MAX_QUEUES];
153152

drivers/gpu/drm/v3d/v3d_sched.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,8 +656,6 @@ v3d_cpu_job_run(struct drm_sched_job *sched_job)
656656
struct v3d_cpu_job *job = to_cpu_job(sched_job);
657657
struct v3d_dev *v3d = job->base.v3d;
658658

659-
v3d->cpu_job = job;
660-
661659
if (job->job_type >= ARRAY_SIZE(cpu_job_function)) {
662660
DRM_DEBUG_DRIVER("Unknown CPU job: %d\n", job->job_type);
663661
return NULL;

0 commit comments

Comments
 (0)