[Intel-gfx] [PATCH] drm/i915: Boost priority for the mmioflip task

Chris Wilson chris at chris-wilson.co.uk
Wed Aug 12 02:10:21 PDT 2015


We don't want pageflips to be delayed by any arbitrary user process, so
move their task to the high priority workqueue.

Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
---
 drivers/gpu/drm/i915/intel_display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 9cca8f76ebcd..bb40f1c163ec 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -11214,7 +11214,7 @@ static int intel_queue_mmio_flip(struct drm_device *dev,
 	mmio_flip->crtc = to_intel_crtc(crtc);
 
 	INIT_WORK(&mmio_flip->work, intel_mmio_flip_work_func);
-	schedule_work(&mmio_flip->work);
+	queue_work(system_highpri_wq, &mmio_flip->work);
 
 	return 0;
 }
-- 
2.5.0



More information about the Intel-gfx mailing list