of: MSI: Simplify irqdomain lookup
[linux/fpc-iii.git] / arch / x86 / kernel / cpu / bugs.c
blobbd17db15a2c1ef07412c73f064f282a3f55c9313
1 /*
2 * Copyright (C) 1994 Linus Torvalds
4 * Cyrix stuff, June 1998 by:
5 * - Rafael R. Reilova (moved everything from head.S),
6 * <rreilova@ececs.uc.edu>
7 * - Channing Corn (tests & fixes),
8 * - Andrew D. Balsa (code cleanup).
9 */
10 #include <linux/init.h>
11 #include <linux/utsname.h>
12 #include <asm/bugs.h>
13 #include <asm/processor.h>
14 #include <asm/processor-flags.h>
15 #include <asm/fpu/internal.h>
16 #include <asm/msr.h>
17 #include <asm/paravirt.h>
18 #include <asm/alternative.h>
20 void __init check_bugs(void)
22 identify_boot_cpu();
23 #ifndef CONFIG_SMP
24 pr_info("CPU: ");
25 print_cpu_info(&boot_cpu_data);
26 #endif
29 * Check whether we are able to run this kernel safely on SMP.
31 * - i386 is no longer supported.
32 * - In order to run on anything without a TSC, we need to be
33 * compiled for a i486.
35 if (boot_cpu_data.x86 < 4)
36 panic("Kernel requires i486+ for 'invlpg' and other features");
38 init_utsname()->machine[1] =
39 '0' + (boot_cpu_data.x86 > 6 ? 6 : boot_cpu_data.x86);
40 alternative_instructions();
42 fpu__init_check_bugs();