summaryrefslogtreecommitdiffstats
path: root/arch/x86_64/ia32
diff options
context:
space:
mode:
authorRoss Biro <ross.biro@gmail.com>2006-01-11 22:43:51 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-12 04:04:52 +0100
commit79c62cf1789f935280138b412bb750be84aec747 (patch)
tree24c522ed0dd3dba942f1db43048205b0973aa7c8 /arch/x86_64/ia32
parent[PATCH] x86_64: Return -1 for unknown PCI bus affinity (diff)
downloadlinux-79c62cf1789f935280138b412bb750be84aec747.tar.xz
linux-79c62cf1789f935280138b412bb750be84aec747.zip
[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>
Diffstat (limited to 'arch/x86_64/ia32')
0 files changed, 0 insertions, 0 deletions