]> git.baikalelectronics.ru Git - kernel.git/commit
x86: fix setup of cyc2ns in tsc_64.c
authorThomas Gleixner <tglx@linutronix.de>
Sun, 18 May 2008 17:27:48 +0000 (19:27 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 23 May 2008 12:08:06 +0000 (14:08 +0200)
commit64608d7c68f6b41ba73759b4926686a8fe4ec161
tree89edfa1ff482b13df41006c7b0ba6786c77201cc
parent7285b2cf4ba2afee112c6b04e7942c276096ed6b
x86: fix setup of cyc2ns in tsc_64.c

When the TSC is calibrated against the PIT due to the nonavailability
of PMTIMER/HPET or due to SMI interference then the setup of the per
CPU cyc2ns variables is skipped. This is unlikely to happen but it
would definitely render sched_clock() unusable.

This was introduced with commit 488f974429c08a883dd42651dcec4e7cc313aa46

    x86: scale cyc_2_nsec according to CPU frequency

Update the per CPU cyc2ns variables in all exit pathes of tsc_calibrate.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@kernel.org
arch/x86/kernel/tsc_64.c