]> err.no Git - linux-2.6/blobdiff - arch/x86/kernel/tsc_32.c
Merge commit 'linus/master' into sched-fixes-for-linus
[linux-2.6] / arch / x86 / kernel / tsc_32.c
index b087d691f165842836fe362b65c361f57669841e..068759db63ddebca0ed5561a1306a302dc38f474 100644 (file)
@@ -413,6 +413,11 @@ void __init tsc_init(void)
 
        if (!cpu_khz) {
                mark_tsc_unstable("could not calculate TSC khz");
+               /*
+                * We need to disable the TSC completely in this case
+                * to prevent sched_clock() from using it.
+                */
+               tsc_disabled = 1;
                return;
        }