android_kernel_xiaomi_sm8350/arch/x86_64
Mathieu Desnoyers dacb16b1a0 [PATCH] i386 and x86_64 TSC set_cyc2ns_scale imprecision
I just found out that some precision is unnecessarily lost in the
arch/i386/kernel/timers/timer_tsc.c:set_cyc2ns_scale function.  It uses a
cpu_mhz parameter when it could use a cpu_khz.  In the specific case of an
Intel P4 running at 3001.171 Mhz, the truncation to 3001 Mhz leads to an
imprecision of 19 microseconds per second : this is very sad for a timer with
nearly nanosecond accuracy.

Fix the x86_64 architecture too.

Cc: george anzinger <george@mvista.com>
Cc: john stultz <johnstul@us.ibm.com>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-30 17:37:11 -08:00
..
boot [PATCH] x86-64: Fix gcc 4 warnings about pointer signedness 2005-09-12 10:50:56 -07:00
crypto [PATCH] x86_64: add MODULE_ALIAS for aes 2005-08-08 15:29:13 -07:00
ia32 [PATCH] mm: mm_init set_mm_counters 2005-10-29 21:40:38 -07:00
kernel [PATCH] i386 and x86_64 TSC set_cyc2ns_scale imprecision 2005-10-30 17:37:11 -08:00
lib [LIB]: Consolidate _atomic_dec_and_lock() 2005-09-14 21:47:01 -07:00
mm [PATCH] mm: init_mm without ptlock 2005-10-29 21:40:40 -07:00
oprofile
pci [PATCH] x86-64: Use ACPI PXM to parse PCI<->node assignments 2005-09-12 10:49:57 -07:00
defconfig [PATCH] x86-64: Update defconfig 2005-09-12 10:49:55 -07:00
Kconfig [PATCH] update URL for HPET spec. 2005-09-21 10:12:18 -07:00
Kconfig.debug
Makefile kbuild: alpha,x86_64 use generic asm-offsets.h support 2005-09-09 21:28:48 +02:00