Skip to content

Commit 2fd05d0

Browse files
mairacanalpopcornmix
authored andcommitted
drm/v3d: Remove v3d->cpu_job
Commit dc4afc0 upstream. 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 55c073b commit 2fd05d0

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

drivers/gpu/drm/v3d/v3d_drv.h

-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ struct v3d_dev {
153153
struct v3d_render_job *render_job;
154154
struct v3d_tfu_job *tfu_job;
155155
struct v3d_csd_job *csd_job;
156-
struct v3d_cpu_job *cpu_job;
157156

158157
struct v3d_queue_state queue[V3D_MAX_QUEUES];
159158

drivers/gpu/drm/v3d/v3d_sched.c

-2
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)