mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +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
1 changed files with 1 additions and 1 deletions
|
@ -1220,7 +1220,7 @@ void tms380tr_wait(unsigned long time)
|
||||||
tmp = schedule_timeout_interruptible(tmp);
|
tmp = schedule_timeout_interruptible(tmp);
|
||||||
} while(time_after(tmp, jiffies));
|
} while(time_after(tmp, jiffies));
|
||||||
#else
|
#else
|
||||||
udelay(time);
|
mdelay(time / 1000);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue