x86: disable TSC for sched_clock() when calibration failed
authorThomas Gleixner <tglx@linutronix.de>
Sun, 18 May 2008 20:17:59 +0000 (22:17 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 23 May 2008 12:08:06 +0000 (14:08 +0200)
commit74dc51a3de06aa516e3b9fdc4017b2aeb38bf44b
tree85754dadbcbbf5d08dc39907abcf482a0b154324
parent9ccc906c97e34fd91dc6aaf5b69b52d824386910
x86: disable TSC for sched_clock() when calibration failed

When the TSC calibration fails then TSC is still used in
sched_clock(). Disable it completely in that case.

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