diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2005-11-30 13:33:26 +0900 |
---|---|---|
committer | <ralf@denk.linux-mips.net> | 2006-01-10 13:39:04 +0000 |
commit | f12555d24ca636569b51c6f104aab41b2bba8c32 (patch) | |
tree | 7fa3b59cf1d8a2d11212bcdda76defecbc5076cc /sound/oss/ad1848_mixer.h | |
parent | 6c35585273b26a580b2e2ad3d6a7db282308eec5 (diff) |
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 <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'sound/oss/ad1848_mixer.h')
0 files changed, 0 insertions, 0 deletions