sh: Fixup ndelay() xloops calculation for alternate HZ.
authorkogiidena <kogiidena@eggplant.ddo.jp>
Tue, 8 May 2007 11:45:46 +0000 (20:45 +0900)
committerPaul Mundt <lethal@hera.kernel.org>
Wed, 9 May 2007 01:35:02 +0000 (01:35 +0000)
commitc71861e65e2898850478a7ac6c4b8cc9f7007e9e
tree6ab615967bc5e6d2116b1b5cc3ffe945c5ae14b3
parent074f98df0547b7d15f78db9a17e985da0c22af28
sh: Fixup ndelay() xloops calculation for alternate HZ.

Currently the xloops calculation in ndelay() gets set to 0 when
calculated with HZ=250, fix up how we do the HZ factoring in order
to get this right for differing values.

Signed-off-by: kogiidena <kogiidena@eggplant.ddo.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/lib/delay.c