[PATCH 5/5] drm/i915: do not differ cleanup work
Chaitanya Kumar Borah
chaitanya.kumar.borah at intel.com
Mon Jan 22 15:00:39 UTC 2024
This is a test patch to check if the concept works in principle.
Seems to be working locally.
Signed-off-by: Chaitanya Kumar Borah <chaitanya.kumar.borah at intel.com>
---
drivers/gpu/drm/i915/display/intel_display.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
index 8dbb7bdc24de..c74a63556541 100644
--- a/drivers/gpu/drm/i915/display/intel_display.c
+++ b/drivers/gpu/drm/i915/display/intel_display.c
@@ -7013,10 +7013,8 @@ static void intel_atomic_commit_fence_wait(struct intel_atomic_state *intel_stat
}
}
-static void intel_atomic_cleanup_work(struct work_struct *work)
+static void intel_atomic_cleanup_work(struct intel_atomic_state *state)
{
- struct intel_atomic_state *state =
- container_of(work, struct intel_atomic_state, base.commit_work);
struct drm_i915_private *i915 = to_i915(state->base.dev);
struct intel_crtc_state *old_crtc_state;
struct intel_crtc *crtc;
@@ -7288,8 +7286,8 @@ static void intel_atomic_commit_tail(struct intel_atomic_state *state)
* schedule point (cond_resched()) here anyway to keep latencies
* down.
*/
- INIT_WORK(&state->base.commit_work, intel_atomic_cleanup_work);
- queue_work(system_highpri_wq, &state->base.commit_work);
+
+ intel_atomic_cleanup_work(state);
}
static void intel_atomic_commit_work(struct work_struct *work)
--
2.25.1
More information about the Intel-gfx-trybot
mailing list