浏览代码

x86, mce: fix build failure in arch/x86/kernel/cpu/mcheck/threshold.c

Impact: build fix

The APIC code rewrite in the x86 tree broke the x86/mce branch:

 arch/x86/kernel/cpu/mcheck/threshold.c: In function ‘mce_threshold_interrupt’:
 arch/x86/kernel/cpu/mcheck/threshold.c:24: error: implicit declaration of function ‘ack_APIC_irq’

Also tidy up the file a bit while at it.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Ingo Molnar 16 年之前
父节点
当前提交
73af76dfd1
共有 1 个文件被更改,包括 7 次插入3 次删除
  1. 7 3
      arch/x86/kernel/cpu/mcheck/threshold.c

+ 7 - 3
arch/x86/kernel/cpu/mcheck/threshold.c

@@ -1,9 +1,13 @@
-/* Common corrected MCE threshold handler code */
-#include <linux/kernel.h>
+/*
+ * Common corrected MCE threshold handler code:
+ */
 #include <linux/interrupt.h>
 #include <linux/interrupt.h>
-#include <asm/mce.h>
+#include <linux/kernel.h>
+
 #include <asm/irq_vectors.h>
 #include <asm/irq_vectors.h>
+#include <asm/apic.h>
 #include <asm/idle.h>
 #include <asm/idle.h>
+#include <asm/mce.h>
 
 
 static void default_threshold_interrupt(void)
 static void default_threshold_interrupt(void)
 {
 {