Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116470
b: refs/heads/master
c: 80e5609
h: refs/heads/master
v: v3
  • Loading branch information
Cyrill Gorcunov authored and Ingo Molnar committed Oct 16, 2008
1 parent 30b15c7 commit a610795
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 920fa7a507c3b1004a9ebe07a2c9d38605b3406a
refs/heads/master: 80e5609cabd7e4321769701a70297f819a15b08d
9 changes: 7 additions & 2 deletions trunk/arch/x86/kernel/apic_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@
#include <mach_ipi.h>
#include <mach_apic.h>

/*
* Sanity check
*/
#if ((SPURIOUS_APIC_VECTOR & 0x0F) != 0x0F)
# error SPURIOUS_APIC_VECTOR definition error
#endif

/* Disable local APIC timer from the kernel commandline or via dmi quirk */
static int disable_apic_timer __cpuinitdata;
static int apic_calibrate_pmtmr __initdata;
Expand Down Expand Up @@ -939,8 +946,6 @@ void __cpuinit setup_local_APIC(void)
preempt_disable();
value = apic_read(APIC_LVR);

BUILD_BUG_ON((SPURIOUS_APIC_VECTOR & 0x0f) != 0x0f);

/*
* Double-check whether this APIC is really registered.
* This is meaningless in clustered apic mode, so we skip it.
Expand Down

0 comments on commit a610795

Please sign in to comment.