Skip to content

Commit 5a238b2

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 fd11c75 commit 5a238b2

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
@@ -673,8 +673,6 @@ v3d_cpu_job_run(struct drm_sched_job *sched_job)
673673
struct v3d_cpu_job *job = to_cpu_job(sched_job);
674674
struct v3d_dev *v3d = job->base.v3d;
675675

676-
v3d->cpu_job = job;
677-
678676
if (job->job_type >= ARRAY_SIZE(cpu_job_function)) {
679677
DRM_DEBUG_DRIVER("Unknown CPU job: %d\n", job->job_type);
680678
return NULL;

0 commit comments

Comments
 (0)