]> git.hungrycats.org Git - linux/commitdiff
Fix APIC timer initialization.
authorLinus Torvalds <torvalds@home.osdl.org>
Thu, 22 Jan 2004 02:08:36 +0000 (18:08 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Thu, 22 Jan 2004 02:08:36 +0000 (18:08 -0800)
We used to write fields that were marked RESERVED and that
are apparently some old stale timer base. Stop doing that.

Verified with Mikael Pettersson, and confirmed to fix ACPI
boot-time lockups for a few people.

arch/i386/kernel/apic.c

index 97ac569c8b5ea5e92331674ab63210b9ad6e06e4..83569f8ab7ed7d8339b9cd50ca105d72aa9acc85 100644 (file)
@@ -834,11 +834,10 @@ void (*wait_timer_tick)(void) = wait_8254_wraparound;
 
 void __setup_APIC_LVTT(unsigned int clocks)
 {
-       unsigned int lvtt1_value, tmp_value;
+       unsigned int lvtt_value, tmp_value;
 
-       lvtt1_value = SET_APIC_TIMER_BASE(APIC_TIMER_BASE_DIV) |
-                       APIC_LVT_TIMER_PERIODIC | LOCAL_TIMER_VECTOR;
-       apic_write_around(APIC_LVTT, lvtt1_value);
+       lvtt_value = APIC_LVT_TIMER_PERIODIC | LOCAL_TIMER_VECTOR;
+       apic_write_around(APIC_LVTT, lvtt_value);
 
        /*
         * Divide PICLK by 16