]> git.hungrycats.org Git - linux/commit
[SPARC64]: Fix delay with HZ==1000.
authorDavid S. Miller <davem@nuts.davemloft.net>
Fri, 27 Aug 2004 09:12:23 +0000 (02:12 -0700)
committerDavid S. Miller <davem@nuts.davemloft.net>
Fri, 27 Aug 2004 09:12:23 +0000 (02:12 -0700)
commit29441e94554d406b75e647b85a9753981167910f
tree6515dbcba48b9f624d46d0090a135240f8880149
parent926c137ba55da581d091ff4c91d51357ee3af8f1
[SPARC64]: Fix delay with HZ==1000.

When I moved sparc64 over to HZ==1000 this added some
problems to the udelay() handling.  Specifically, with
slower cpus we could now get underflows to zero for
things like udelay(1) due to the order of multiplies
and shifts.

Fix this, and move it out to arch/sparc64/lib/delay.c
so it is easier to tinker with this in the future and
also to optimize away one of the multiplies for the
constant delay case just like other platforms do.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/sparc64_ksyms.c
arch/sparc64/lib/Makefile
arch/sparc64/lib/delay.c [new file with mode: 0644]
include/asm-sparc64/delay.h