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)
commit311089d3d372c6f2b01a6d8a5ed7fcbcd9ad7621
treeef370ce461ca29a3d40d6d821d2ae26ef52cf776
parent1991bdfaf5897b6fbfdc7dce81508f7cbc044768
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 <shaohua.li@intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_display.c