瀏覽代碼

[PATCH] Don't trigger full rebuild via CONFIG_X86_MCE

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Alexey Dobriyan 19 年之前
父節點
當前提交
a03a3e287b
共有 4 個文件被更改,包括 7 次插入6 次删除
  1. 1 0
      arch/i386/kernel/cpu/common.c
  2. 1 0
      arch/i386/power/cpu.c
  3. 5 0
      include/asm-i386/mce.h
  4. 0 6
      include/asm-i386/processor.h

+ 1 - 0
arch/i386/kernel/cpu/common.c

@@ -12,6 +12,7 @@
 #include <asm/io.h>
 #include <asm/io.h>
 #include <asm/mmu_context.h>
 #include <asm/mmu_context.h>
 #include <asm/mtrr.h>
 #include <asm/mtrr.h>
+#include <asm/mce.h>
 #ifdef CONFIG_X86_LOCAL_APIC
 #ifdef CONFIG_X86_LOCAL_APIC
 #include <asm/mpspec.h>
 #include <asm/mpspec.h>
 #include <asm/apic.h>
 #include <asm/apic.h>

+ 1 - 0
arch/i386/power/cpu.c

@@ -11,6 +11,7 @@
 #include <linux/module.h>
 #include <linux/module.h>
 #include <linux/suspend.h>
 #include <linux/suspend.h>
 #include <asm/mtrr.h>
 #include <asm/mtrr.h>
+#include <asm/mce.h>
 
 
 static struct saved_context saved_context;
 static struct saved_context saved_context;
 
 

+ 5 - 0
include/asm-i386/mce.h

@@ -0,0 +1,5 @@
+#ifdef CONFIG_X86_MCE
+extern void mcheck_init(struct cpuinfo_x86 *c);
+#else
+#define mcheck_init(c) do {} while(0)
+#endif

+ 0 - 6
include/asm-i386/processor.h

@@ -728,10 +728,4 @@ extern unsigned long boot_option_idle_override;
 extern void enable_sep_cpu(void);
 extern void enable_sep_cpu(void);
 extern int sysenter_setup(void);
 extern int sysenter_setup(void);
 
 
-#ifdef CONFIG_X86_MCE
-extern void mcheck_init(struct cpuinfo_x86 *c);
-#else
-#define mcheck_init(c) do {} while(0)
-#endif
-
 #endif /* __ASM_I386_PROCESSOR_H */
 #endif /* __ASM_I386_PROCESSOR_H */