drm/i915: Boost priority for the mmioflip task
diff mbox

Message ID 1439370621-23596-1-git-send-email-chris@chris-wilson.co.uk
State New
Headers show

Commit Message

Chris Wilson Aug. 12, 2015, 9:10 a.m. UTC
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@chris-wilson.co.uk>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
---
 drivers/gpu/drm/i915/intel_display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox

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;
 }