drm/i915: clean up udelay usage
authorArjan van de Ven <arjan@linux.intel.com>
Mon, 23 Mar 2009 20:36:25 +0000 (13:36 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 1 Apr 2009 22:21:58 +0000 (15:21 -0700)
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 <arjan@linux.intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_display.c

index d9c50ff94d7633d2bb6d166e73793bad1eb6691b..0b33760b04cb13149e33e8171ed05536017c8bbd 100644 (file)
@@ -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