]> git.karo-electronics.de Git - linux-beck.git/commitdiff
x86, apic: clean up spurious vector sanity check
authorIngo Molnar <mingo@elte.hu>
Sat, 31 Jan 2009 01:06:50 +0000 (02:06 +0100)
committerIngo Molnar <mingo@elte.hu>
Sat, 31 Jan 2009 03:21:20 +0000 (04:21 +0100)
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>
arch/x86/include/asm/irq_vectors.h
arch/x86/kernel/apic.c

index 393f85ecdd80c4a224904ea1059aa35ec8807e2d..2601fd108c7dd5bb2fc8deabe8192ffa918d7d9e 100644 (file)
  */
 
 #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
index d6da6dd2f60a95afa9e764f1b2ccabfe05db4a45..85d8b50d1af70dab633ff82453c873d5e17ba978 100644 (file)
 #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 */