Skip to content

Commit

Permalink
x86, apic: clean up spurious vector sanity check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ingo Molnar committed Jan 31, 2009
1 parent 5da690d commit 647ad94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 7 additions & 0 deletions arch/x86/include/asm/irq_vectors.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 0 additions & 7 deletions arch/x86/kernel/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 647ad94

Please sign in to comment.