diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2008-05-21 17:10:22 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-08 03:12:59 -0400 |
commit | 35542c5ebced864776d90d83d1e255016fd4c084 (patch) | |
tree | 2d190b468fbd76286762a25656452492b89acb9e /arch/x86/kernel/io_apic_32.c | |
parent | a1133d8e4ffc2db751eb987a2f3cf8ead67927c3 (diff) |
x86: I/O APIC: clean up the 8259A on a NMI watchdog failure
There is no point in keeping the 8259A enabled if the I/O APIC NMI
watchdog has failed and the 8259A is not used to pass through regular
timer interrupts. This fixes problems with some systems where some logic
gets confused.
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_32.c')
-rw-r--r-- | arch/x86/kernel/io_apic_32.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/io_apic_32.c b/arch/x86/kernel/io_apic_32.c index 41218ac75d10..7c7d88ebb966 100644 --- a/arch/x86/kernel/io_apic_32.c +++ b/arch/x86/kernel/io_apic_32.c | |||
@@ -58,6 +58,7 @@ static struct { int pin, apic; } ioapic_i8259 = { -1, -1 }; | |||
58 | static DEFINE_SPINLOCK(ioapic_lock); | 58 | static DEFINE_SPINLOCK(ioapic_lock); |
59 | static DEFINE_SPINLOCK(vector_lock); | 59 | static DEFINE_SPINLOCK(vector_lock); |
60 | 60 | ||
61 | int timer_through_8259 __initdata; | ||
61 | 62 | ||
62 | /* | 63 | /* |
63 | * Is the SiS APIC rmw bug present ? | 64 | * Is the SiS APIC rmw bug present ? |
@@ -2194,6 +2195,7 @@ static inline void __init check_timer(void) | |||
2194 | enable_8259A_irq(0); | 2195 | enable_8259A_irq(0); |
2195 | if (timer_irq_works()) { | 2196 | if (timer_irq_works()) { |
2196 | printk("works.\n"); | 2197 | printk("works.\n"); |
2198 | timer_through_8259 = 1; | ||
2197 | if (pin1 != -1) | 2199 | if (pin1 != -1) |
2198 | replace_pin_at_irq(0, apic1, pin1, apic2, pin2); | 2200 | replace_pin_at_irq(0, apic1, pin1, apic2, pin2); |
2199 | else | 2201 | else |