From: Shaohua Li Date: Thu, 26 Nov 2009 06:22:41 +0000 (+0800) Subject: drm/i915: use msleep for intel_wait_for_vblank X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=311089d3d372c6f2b01a6d8a5ed7fcbcd9ad7621;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git drm/i915: use msleep for intel_wait_for_vblank 20ms delay is quite big and the routine isn't called in atomic context. better use msleep to let other tasks run. This can reduce cpu time used by Xorg, so potentially boost boot. Signed-off-by: Shaohua Li Signed-off-by: Eric Anholt --- diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index a1833cbfaafd..b6251cdd4ebf 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -950,7 +950,7 @@ void intel_wait_for_vblank(struct drm_device *dev) { /* Wait for 20ms, i.e. one cycle at 50hz. */ - mdelay(20); + msleep(20); } /* Parameters have changed, update FBC info */