drm/i915: clean up udelay usage

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Thursday, April 2, 2009 - 10:07 pm

Gitweb:     http://git.kernel.org/linus/580982d399071474c349538b7f5780bc79b54e7f
Commit:     580982d399071474c349538b7f5780bc79b54e7f
Parent:     5ca58282089b11f64b911618036ee7676f12735b
Author:     Arjan van de Ven <arjan@linux.intel.com>
AuthorDate: Mon Mar 23 13:36:25 2009 -0700
Committer:  Eric Anholt <eric@anholt.net>
CommitDate: Wed Apr 1 15:21:58 2009 -0700

    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 <arjan@linux.intel.com>
    Signed-off-by: Eric Anholt <eric@anholt.net>
---
 drivers/gpu/drm/i915/intel_display.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index d9c50ff..0b33760 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
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
drm/i915: clean up udelay usage, Linux Kernel Mailing ..., (Thu Apr 2, 10:07 pm)