mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 01:04:19 +08:00
79c62cf178
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> |
||
---|---|---|
.. | ||
bitops.c | ||
bitstr.c | ||
clear_page.S | ||
copy_page.S | ||
copy_user.S | ||
csum-copy.S | ||
csum-partial.c | ||
csum-wrappers.c | ||
delay.c | ||
getuser.S | ||
io.c | ||
Makefile | ||
memcpy.S | ||
memmove.c | ||
memset.S | ||
putuser.S | ||
thunk.S | ||
usercopy.c |