x86, apic: clean up spurious vector sanity check

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Saturday, March 28, 2009 - 2:14 pm

Gitweb:     http://git.kernel.org/linus/647ad94fc0479e33958cb4d0e20e241c0bcf599c
Commit:     647ad94fc0479e33958cb4d0e20e241c0bcf599c
Parent:     5da690d29f0de17cc1835dd3eb8f8bd0945521f0
Author:     Ingo Molnar <mingo@elte.hu>
AuthorDate: Sat Jan 31 02:06:50 2009 +0100
Committer:  Ingo Molnar <mingo@elte.hu>
CommitDate: Sat Jan 31 04:21:20 2009 +0100

    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>
---
 arch/x86/include/asm/irq_vectors.h |    7 +++++++
 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 393f85e..2601fd1 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 d6da6dd..85d8b50 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 */
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
x86, apic: clean up spurious vector sanity check, Linux Kernel Mailing ..., (Sat Mar 28, 2:14 pm)