Define MAX_UDELAY_MS
commitd89b9f6dcb7165e675877f6169101dc11dbc787a
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Fri, 4 Nov 2005 17:02:54 +0000 (5 02:02 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 4 Nov 2005 17:17:44 +0000 (4 17:17 +0000)
tree972ffc6c33e34bc1289766e111f999492b6c1df2
parent7772fe4ef28e2b0f0e9094f5d3b80b267fe64fc2
Define MAX_UDELAY_MS

If HZ was 1000, mdelay(2) cause overflow on multiplication in
__udelay.  We should define MAX_UDELAY_MS properly to prevent this.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/delay.h