diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-30 20:06:50 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-30 22:21:20 -0500 |
commit | 647ad94fc0479e33958cb4d0e20e241c0bcf599c (patch) | |
tree | 8c154377b804db07ada2a5e8f459f7dbf2c9e10a | |
parent | 5da690d29f0de17cc1835dd3eb8f8bd0945521f0 (diff) |
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>
-rw-r--r-- | arch/x86/include/asm/irq_vectors.h | 7 | ||||
-rw-r--r-- | arch/x86/kernel/apic.c | 7 |
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 @@ | |||
52 | */ | 52 | */ |
53 | 53 | ||
54 | #define SPURIOUS_APIC_VECTOR 0xff | 54 | #define SPURIOUS_APIC_VECTOR 0xff |
55 | /* | ||
56 | * Sanity check | ||
57 | */ | ||
58 | #if ((SPURIOUS_APIC_VECTOR & 0x0F) != 0x0F) | ||
59 | # error SPURIOUS_APIC_VECTOR definition error | ||
60 | #endif | ||
61 | |||
55 | #define ERROR_APIC_VECTOR 0xfe | 62 | #define ERROR_APIC_VECTOR 0xfe |
56 | #define RESCHEDULE_VECTOR 0xfd | 63 | #define RESCHEDULE_VECTOR 0xfd |
57 | #define CALL_FUNCTION_VECTOR 0xfc | 64 | #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 @@ | |||
49 | #include <asm/mtrr.h> | 49 | #include <asm/mtrr.h> |
50 | #include <asm/smp.h> | 50 | #include <asm/smp.h> |
51 | 51 | ||
52 | /* | ||
53 | * Sanity check | ||
54 | */ | ||
55 | #if ((SPURIOUS_APIC_VECTOR & 0x0F) != 0x0F) | ||
56 | # error SPURIOUS_APIC_VECTOR definition error | ||
57 | #endif | ||
58 | |||
59 | unsigned int num_processors; | 52 | unsigned int num_processors; |
60 | unsigned disabled_cpus __cpuinitdata; | 53 | unsigned disabled_cpus __cpuinitdata; |
61 | /* Processor that is doing the boot up */ | 54 | /* Processor that is doing the boot up */ |