Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67756
b: refs/heads/master
c: b58eb00
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner authored and Thomas Gleixner committed Oct 12, 2007
1 parent b1d38a6 commit 3deeacb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: d03030e917047cf7f475e641cd2d6e83647392b0
refs/heads/master: b58eb00df7f7f80b7f456bf8fb740fddf14408ba
8 changes: 3 additions & 5 deletions trunk/arch/x86/kernel/apic_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -759,8 +759,6 @@ void __init init_apic_mappings(void)
* P5 APIC double write bug.
*/

#define APIC_DIVISOR 16

static void __setup_APIC_LVTT(unsigned int clocks, int oneshot, int irqen)
{
unsigned int lvtt_value, tmp_value;
Expand All @@ -782,7 +780,7 @@ static void __setup_APIC_LVTT(unsigned int clocks, int oneshot, int irqen)
| APIC_TDR_DIV_16);

if (!oneshot)
apic_write(APIC_TMICT, clocks/APIC_DIVISOR);
apic_write(APIC_TMICT, clocks);
}

static void setup_APIC_timer(unsigned int clocks)
Expand Down Expand Up @@ -835,7 +833,7 @@ static void __init calibrate_APIC_clock(void)
*
* No interrupt enable !
*/
__setup_APIC_LVTT(4000000000, 0, 0);
__setup_APIC_LVTT(250000000, 0, 0);

apic_start = apic_read(APIC_TMCCT);
#ifdef CONFIG_X86_PM_TIMER
Expand All @@ -862,7 +860,7 @@ static void __init calibrate_APIC_clock(void)
printk(KERN_INFO "Detected %d.%03d MHz APIC timer.\n",
result / 1000 / 1000, result / 1000 % 1000);

calibration_result = result * APIC_DIVISOR / HZ;
calibration_result = result / HZ;
}

void __init setup_boot_APIC_clock (void)
Expand Down

0 comments on commit 3deeacb

Please sign in to comment.