]> err.no Git - linux-2.6/commit
x86: scale cyc_2_nsec according to CPU frequency
authorGuillaume Chazarain <guichaz@yahoo.fr>
Wed, 30 Jan 2008 12:30:06 +0000 (13:30 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:30:06 +0000 (13:30 +0100)
commit53d517cdbaac704352b3d0c10fecb99e0b54572e
tree4056bc99a4e6077d7d968d30ea21895e425a83ef
parent83bd01024b1fdfc41d9b758e5669e80fca72df66
x86: scale cyc_2_nsec according to CPU frequency

scale the sched_clock() cyc_2_nsec scaling factor according to
CPU frequency changes.

[ mingo@elte.hu: simplified it and fixed it for SMP. ]

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/tsc_32.c
arch/x86/kernel/tsc_64.c
include/asm-x86/timer.h