Fix booting pentium+ with dodgy TSC
authorRusty Russell <rusty@rustcorp.com.au>
Sun, 6 Apr 2008 07:23:38 +0000 (17:23 +1000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 6 Apr 2008 23:10:40 +0000 (16:10 -0700)
We handle a broken tsc these days, so no need to panic.  We clear the
TSC bit when tsc_init decides it's unreliable (eg.  under lguest w/ bad
host TSC), leading to bogus panic.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/kernel/cpu/bugs.c

index 027e5c003b167df8ed361e8e33c0a6af698f8344..170d2f5523b2c6e04f4c28aa423077388bb3abce 100644 (file)
@@ -142,14 +142,6 @@ static void __init check_config(void)
                panic("Kernel requires i486+ for 'invlpg' and other features");
 #endif
 
-/*
- * If we configured ourselves for a TSC, we'd better have one!
- */
-#ifdef CONFIG_X86_TSC
-       if (!cpu_has_tsc)
-               panic("Kernel compiled for Pentium+, requires TSC feature!");
-#endif
-
 /*
  * If we were told we had a good local APIC, check for buggy Pentia,
  * i.e. all B steppings and the C2 stepping of P54C when using their