]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Fix sparc32 udelay() rounding errors.
authorMark Fortescue <mark@mtfhpc.demon.co.uk>
Wed, 25 Jul 2007 04:45:44 +0000 (21:45 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Aug 2007 21:27:30 +0000 (14:27 -0700)
commitdffc659ff8b135a29b36c8cc45e9f67f8c5dbfa7
tree2bc1893b6edba73084ccad02799b0c7995a51c43
parent499d853ced11bb3c93d542871ab4c84ae5713c60
Fix sparc32 udelay() rounding errors.

[SPARC32]: Fix rounding errors in ndelay/udelay implementation.

__ndelay and __udelay have not been delayung >= specified time.
The problem with __ndelay has been tacked down to the rounding of the
multiplier constant. By changing this, delays > app 18us are correctly
calculated.
The problem with __udelay has also been tracked down to rounding issues.
Changing the multiplier constant (to match that used in sparc64) corrects
for large delays and adding in a rounding constant corrects for trunctaion
errors in the claculations.
Many short delays will return without looping. This is not an error as there
is the fixed delay of doing all the maths to calculate the loop count.

Signed-off-by: Mark Fortescue <mark@mtfhpc.demon.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/sparc/kernel/entry.S