From: Arjan van de Ven Date: Mon, 23 Mar 2009 20:36:25 +0000 (-0700) Subject: drm/i915: clean up udelay usage X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=580982d399071474c349538b7f5780bc79b54e7f;p=openwrt%2Fstaging%2Fblogic.git drm/i915: clean up udelay usage udelay() of 20 milliseconds really ought to just use mdelay(), that avoids the various wrap scenarios and also is more readable Signed-off-by: Arjan van de Ven Signed-off-by: Eric Anholt --- diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index d9c50ff94d76..0b33760b04cb 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -636,7 +636,7 @@ void intel_wait_for_vblank(struct drm_device *dev) { /* Wait for 20ms, i.e. one cycle at 50hz. */ - udelay(20000); + mdelay(20); } static int