dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Shaohua Li 2009-11-26 14:22:41 +08:00 committed by Eric Anholt
parent 1991bdfaf5
commit 311089d3d3
1 changed files with 1 additions and 1 deletions

View 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 */