Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67758
b: refs/heads/master
c: c4d58cb
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner authored and Thomas Gleixner committed Oct 12, 2007
1 parent d85ed17 commit 9833b28
Show file tree
Hide file tree
Showing 2 changed files with 7 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: abc63fcd3cc61876b2d6f5b0d08021bd1538385c
refs/heads/master: c4d58cbd158dc9b30c55c0e3881ae7c6b8843d5a
12 changes: 6 additions & 6 deletions trunk/arch/x86/kernel/apic_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,9 @@ static void __init calibrate_APIC_clock(void)
unsigned apic, apic_start;
unsigned long tsc, tsc_start;
int result;

local_irq_disable();

/*
* Put whatever arbitrary (but long enough) timeout
* value into the APIC clock, we just want to get the
Expand Down Expand Up @@ -855,6 +858,9 @@ static void __init calibrate_APIC_clock(void)
result = (apic_start - apic) * 1000L * tsc_khz /
(tsc - tsc_start);
}

local_irq_enable();

printk(KERN_DEBUG "APIC timer calibration result %d\n", result);

printk(KERN_INFO "Detected %d.%03d MHz APIC timer.\n",
Expand All @@ -873,22 +879,16 @@ void __init setup_boot_APIC_clock (void)
printk(KERN_INFO "Using local APIC timer interrupts.\n");
using_apic_timer = 1;

local_irq_disable();

calibrate_APIC_clock();
/*
* Now set up the timer for real.
*/
setup_APIC_timer();

local_irq_enable();
}

void __cpuinit setup_secondary_APIC_clock(void)
{
local_irq_disable(); /* FIXME: Do we need this? --RR */
setup_APIC_timer();
local_irq_enable();
}

void disable_APIC_timer(void)
Expand Down

0 comments on commit 9833b28

Please sign in to comment.