Skip to content

Commit 64ba4f2

Browse files
rustyrusselltorvalds
authored andcommitted
Fix booting pentium+ with dodgy TSC
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>
1 parent 3bf4846 commit 64ba4f2

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

‎arch/x86/kernel/cpu/bugs.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,6 @@ static void __init check_config(void)
142142
panic("Kernel requires i486+ for 'invlpg' and other features");
143143
#endif
144144

145-
/*
146-
* If we configured ourselves for a TSC, we'd better have one!
147-
*/
148-
#ifdef CONFIG_X86_TSC
149-
if (!cpu_has_tsc)
150-
panic("Kernel compiled for Pentium+, requires TSC feature!");
151-
#endif
152-
153145
/*
154146
* If we were told we had a good local APIC, check for buggy Pentia,
155147
* i.e. all B steppings and the C2 stepping of P54C when using their

0 commit comments

Comments
 (0)