x86: fix show cpuinfo cpu number always zero
[wrt350n-kernel.git] / arch / x86 / kernel / bugs_64.c
blob9a189cef64043a8968a465f1c34c0424354956f2
1 /*
2 * Copyright (C) 1994 Linus Torvalds
3 * Copyright (C) 2000 SuSE
4 */
6 #include <linux/kernel.h>
7 #include <linux/init.h>
8 #include <asm/alternative.h>
9 #include <asm/bugs.h>
10 #include <asm/processor.h>
11 #include <asm/mtrr.h>
13 void __init check_bugs(void)
15 identify_cpu(&boot_cpu_data);
16 mtrr_bp_init();
17 #if !defined(CONFIG_SMP)
18 printk("CPU: ");
19 print_cpu_info(&boot_cpu_data);
20 #endif
21 alternative_instructions();