]> git.baikalelectronics.ru Git - kernel.git/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)
commit488f974429c08a883dd42651dcec4e7cc313aa46
tree4056bc99a4e6077d7d968d30ea21895e425a83ef
parent8c866f29416b9251616ea9f5792bfe7b871dbf32
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