aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/io_apic_64.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2008-05-21 17:09:34 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-08 03:12:56 -0400
commit60134ebe795b728dbb960485a8e873c3250ada36 (patch)
tree2647ef04bf610bb41a90d93929cf7cbdafeb61e5 /arch/x86/kernel/io_apic_64.c
parente67465f1298671266a8e824c1751afdb7c08c860 (diff)
x86: I/O APIC: keep IRQ off when changing LVT registers
Disable the 8259A acting in the "virtual wire" mode to keep the interrupt line inactive while fiddling with local APIC interrupt vector registers associated with its destination inputs. To be on the safe side, especially concerning flipping the trigger mode. Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/io_apic_64.c')
-rw-r--r--arch/x86/kernel/io_apic_64.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/io_apic_64.c b/arch/x86/kernel/io_apic_64.c
index 6433fc99f1f9..aa45a85c4d11 100644
--- a/arch/x86/kernel/io_apic_64.c
+++ b/arch/x86/kernel/io_apic_64.c
@@ -1702,7 +1702,9 @@ static inline void __init check_timer(void)
1702 apic_printk(APIC_VERBOSE," works.\n"); 1702 apic_printk(APIC_VERBOSE," works.\n");
1703 nmi_watchdog_default(); 1703 nmi_watchdog_default();
1704 if (nmi_watchdog == NMI_IO_APIC) { 1704 if (nmi_watchdog == NMI_IO_APIC) {
1705 disable_8259A_irq(0);
1705 setup_nmi(); 1706 setup_nmi();
1707 enable_8259A_irq(0);
1706 } 1708 }
1707 goto out; 1709 goto out;
1708 } 1710 }