drm/i915: use msleep for intel_wait_for_vblank
authorShaohua Li <shaohua.li@intel.com>
Thu, 26 Nov 2009 06:22:41 +0000 (14:22 +0800)
committerEric Anholt <eric@anholt.net>
Mon, 30 Nov 2009 17:39:57 +0000 (09:39 -0800)
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 <shaohua.li@intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_display.c

index a1833cbfaafdd2f1dd98c384aecb1858cf015856..b6251cdd4ebf74901c635f2ee5f066f67b126397 100644 (file)
@@ -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 */