From: Atsushi Nemoto Date: Wed, 30 Nov 2005 04:33:26 +0000 (+0900) Subject: MIPS: Fix mdelay(1) for 64bit kernel with HZ == 1000 X-Git-Tag: v2.6.16-rc1~462^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f12555d24ca636569b51c6f104aab41b2bba8c32;p=pandora-kernel.git MIPS: Fix mdelay(1) for 64bit kernel with HZ == 1000 mdelay(1) (i.e. udelay(1000)) does not work correctly due to overflow. 1000 * 0x004189374BC6A7f0 = 0x10000000000000180 (>= 2**64) 0x004189374BC6A7ef (0x004189374BC6A7f0 - 1) is OK and it is exactly same as catchall case (0x8000000000000000UL / (500000 / HZ)). Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed