mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 06:12:08 +00:00
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 <andi@firstfloor.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
11a766ce91
commit
5202e173d7
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user