Skip to contentSkip to conversation

Fix initial Linux IRQ state for x86_64

PATCH Applied Jan Kiszka 1 participant 1 message Apr 26, 2007

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 2/7 Fix initial Linux IRQ state for x86_64

Philippe, this is the solution for the BUG I posted privately. Not sure if we need the first hunk, but the second is mandatory for SMP.

Jan

---
 arch/x86_64/kernel/apic.c |    2 ++
 1 file changed, 2 insertions(+)
arch/x86_64/kernel/apic.c +2 -0
Index: linux-2.6.20-x64/arch/x86_64/kernel/apic.c
===================================================================
@@ -875,6 +875,7 @@ void __init setup_boot_APIC_clock (void)
 	setup_APIC_timer(calibration_result);
 
 	local_irq_enable_hw();
+	local_irq_enable();
 }
 
 void __cpuinit setup_secondary_APIC_clock(void)
@@ -882,6 +883,7 @@ void __cpuinit setup_secondary_APIC_cloc
 	local_irq_disable_hw(); /* FIXME: Do we need this? --RR */
 	setup_APIC_timer(calibration_result);
 	local_irq_enable_hw();
+	local_irq_enable();
 }
 
 void disable_APIC_timer(void)