From a81a6a075b001e2f0658be4c28445218a9e68c8d Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Wed, 21 Jan 2004 18:08:36 -0800 Subject: [PATCH] Fix APIC timer initialization. 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 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/i386/kernel/apic.c b/arch/i386/kernel/apic.c index 97ac569c8b5ea..83569f8ab7ed7 100644 --- a/arch/i386/kernel/apic.c +++ b/arch/i386/kernel/apic.c @@ -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 -- 2.53.0