Skip to content

Commit

Permalink
drm/i915: clean up udelay usage
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arjan van de Ven authored and Eric Anholt committed Apr 1, 2009
1 parent 5ca5828 commit 580982d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 580982d

Please sign in to comment.