linux/arch/x86_64/lib
Ross Biro 79c62cf178 [PATCH] x86_64: Make udelay more accurate
The attempt to avoid overflow in __delay caused varying precision
on different CPUs depending on differences in the CPU speed.

We should be able to do this multiplication with out overflowing
provided the
cpu is running at less than about 128 GHz.  xloops < 20000 * 0x10c6.
loops_per_jiffy * HZ <= cpu_clock_speed.  So if the cpu clock speed
< 2^64/(20000 * 0x10c6) = 2^64/ 51E6CC0 < 2^64/2^27 = 2^37 = 128G we
will not overflow the calculation.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-01-11 19:04:52 -08:00
..
bitops.c [PATCH] x86-64: bitops fix for -Os 2005-11-02 19:41:32 -08:00
bitstr.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
clear_page.S [PATCH] x86_64: Remove optimization for B stepping AMD K8 2005-11-14 19:55:17 -08:00
copy_page.S [PATCH] x86_64: Remove optimization for B stepping AMD K8 2005-11-14 19:55:17 -08:00
copy_user.S kbuild: alpha,x86_64 use generic asm-offsets.h support 2005-09-09 21:28:48 +02:00
csum-copy.S [PATCH] x86_64: fix bug in csum_partial_copy_generic() 2005-07-30 10:14:47 -07:00
csum-partial.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
csum-wrappers.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
delay.c [PATCH] x86_64: Make udelay more accurate 2006-01-11 19:04:52 -08:00
getuser.S kbuild: alpha,x86_64 use generic asm-offsets.h support 2005-09-09 21:28:48 +02:00
io.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile [LIB]: Consolidate _atomic_dec_and_lock() 2005-09-14 21:47:01 -07:00
memcpy.S [PATCH] x86_64: Remove optimization for B stepping AMD K8 2005-11-14 19:55:17 -08:00
memmove.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
memset.S [PATCH] x86_64: Remove optimization for B stepping AMD K8 2005-11-14 19:55:17 -08:00
putuser.S kbuild: alpha,x86_64 use generic asm-offsets.h support 2005-09-09 21:28:48 +02:00
thunk.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
usercopy.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00