Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112711
b: refs/heads/master
c: 64e474d
h: refs/heads/master
i:
  112709: acb0888
  112707: 9e96ab4
  112703: 27f372c
v: v3
  • Loading branch information
Cyrill Gorcunov authored and Ingo Molnar committed Aug 15, 2008
1 parent 150370c commit c4ae49e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: 9ce122c6e55c44ae9a4c4c777579b87d83e7f898
refs/heads/master: 64e474d168e3cf31e44890b4947644d361f84e43
10 changes: 4 additions & 6 deletions trunk/arch/x86/kernel/apic_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ unsigned long mp_lapic_addr;
static int force_enable_local_apic;
int disable_apic;

/* Local APIC timer verification ok */
static int local_apic_timer_verify_ok;
/* Disable local APIC timer from the kernel commandline or via dmi quirk */
static int disable_apic_timer __cpuinitdata;
/* Local APIC timer works in C2 */
Expand Down Expand Up @@ -301,7 +299,7 @@ static void lapic_timer_setup(enum clock_event_mode mode,
unsigned int v;

/* Lapic used for broadcast ? */
if (!local_apic_timer_verify_ok)
if (evt->features & CLOCK_EVT_FEAT_DUMMY)
return;

local_irq_save(flags);
Expand Down Expand Up @@ -514,7 +512,7 @@ static int __init calibrate_APIC_clock(void)
return -1;
}

local_apic_timer_verify_ok = 1;
levt->features &= ~CLOCK_EVT_FEAT_DUMMY;

/* We trust the pm timer based calibration */
if (!pm_referenced) {
Expand Down Expand Up @@ -548,11 +546,11 @@ static int __init calibrate_APIC_clock(void)
if (deltaj >= LAPIC_CAL_LOOPS-2 && deltaj <= LAPIC_CAL_LOOPS+2)
apic_printk(APIC_VERBOSE, "... jiffies result ok\n");
else
local_apic_timer_verify_ok = 0;
levt->features |= CLOCK_EVT_FEAT_DUMMY;
} else
local_irq_enable();

if (!local_apic_timer_verify_ok) {
if (levt->features & CLOCK_EVT_FEAT_DUMMY) {
printk(KERN_WARNING
"APIC timer disabled due to verification failure.\n");
return -1;
Expand Down

0 comments on commit c4ae49e

Please sign in to comment.