From: David S. Miller Date: Mon, 25 Oct 2010 20:04:48 +0000 (-0700) Subject: tms380tr: Use mdelay() in tms380tr_wait(). X-Git-Tag: v2.6.37-rc1~11^2~86 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5202e173d7bc5ff832a4f36e66f26e00feb343c6;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git tms380tr: Use mdelay() in tms380tr_wait(). This driver tries to do up to half-second udelay() calls, which overflows on x86-64. Reported-by: Andi Kleen Signed-off-by: David S. Miller --- diff --git a/drivers/net/tokenring/tms380tr.c b/drivers/net/tokenring/tms380tr.c index 663b886..7930203 100644 --- a/drivers/net/tokenring/tms380tr.c +++ b/drivers/net/tokenring/tms380tr.c @@ -1220,7 +1220,7 @@ void tms380tr_wait(unsigned long time) tmp = schedule_timeout_interruptible(tmp); } while(time_after(tmp, jiffies)); #else - udelay(time); + mdelay(time / 1000); #endif }