summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-31 04:06:50 +0300
committerIngo Molnar <mingo@elte.hu>2009-01-31 06:21:20 +0300
commit647ad94fc0479e33958cb4d0e20e241c0bcf599c (patch)
tree8c154377b804db07ada2a5e8f459f7dbf2c9e10a /arch
parent5da690d29f0de17cc1835dd3eb8f8bd0945521f0 (diff)
downloadlinux-647ad94fc0479e33958cb4d0e20e241c0bcf599c.tar.xz
x86, apic: clean up spurious vector sanity check
Move the spurious vector sanity check to the place where it's defined - out of a .c file. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/include/asm/irq_vectors.h7
-rw-r--r--arch/x86/kernel/apic.c7
2 files changed, 7 insertions, 7 deletions
diff --git a/arch/x86/include/asm/irq_vectors.h b/arch/x86/include/asm/irq_vectors.h
index 393f85ecdd80..2601fd108c7d 100644
--- a/arch/x86/include/asm/irq_vectors.h
+++ b/arch/x86/include/asm/irq_vectors.h
@@ -52,6 +52,13 @@
*/
#define SPURIOUS_APIC_VECTOR 0xff
+/*
+ * Sanity check
+ */
+#if ((SPURIOUS_APIC_VECTOR & 0x0F) != 0x0F)
+# error SPURIOUS_APIC_VECTOR definition error
+#endif
+
#define ERROR_APIC_VECTOR 0xfe
#define RESCHEDULE_VECTOR 0xfd
#define CALL_FUNCTION_VECTOR 0xfc
diff --git a/arch/x86/kernel/apic.c b/arch/x86/kernel/apic.c
index d6da6dd2f60a..85d8b50d1af7 100644
--- a/arch/x86/kernel/apic.c
+++ b/arch/x86/kernel/apic.c
@@ -49,13 +49,6 @@
#include <asm/mtrr.h>
#include <asm/smp.h>
-/*
- * Sanity check
- */
-#if ((SPURIOUS_APIC_VECTOR & 0x0F) != 0x0F)
-# error SPURIOUS_APIC_VECTOR definition error
-#endif
-
unsigned int num_processors;
unsigned disabled_cpus __cpuinitdata;
/* Processor that is doing the boot up */