mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
5da690d29f
commit
647ad94fc0
|
@ -52,6 +52,13 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define SPURIOUS_APIC_VECTOR 0xff
|
#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 ERROR_APIC_VECTOR 0xfe
|
||||||
#define RESCHEDULE_VECTOR 0xfd
|
#define RESCHEDULE_VECTOR 0xfd
|
||||||
#define CALL_FUNCTION_VECTOR 0xfc
|
#define CALL_FUNCTION_VECTOR 0xfc
|
||||||
|
|
|
@ -49,13 +49,6 @@
|
||||||
#include <asm/mtrr.h>
|
#include <asm/mtrr.h>
|
||||||
#include <asm/smp.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 int num_processors;
|
||||||
unsigned disabled_cpus __cpuinitdata;
|
unsigned disabled_cpus __cpuinitdata;
|
||||||
/* Processor that is doing the boot up */
|
/* Processor that is doing the boot up */
|
||||||
|
|
Loading…
Reference in New Issue