diff options
-rw-r--r-- | arch/x86/kernel/time_32.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/time_64.c | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/arch/x86/kernel/time_32.c b/arch/x86/kernel/time_32.c index 7215bc6adfcc..77b400f06ea2 100644 --- a/arch/x86/kernel/time_32.c +++ b/arch/x86/kernel/time_32.c | |||
@@ -94,6 +94,7 @@ irqreturn_t timer_interrupt(int irq, void *dev_id) | |||
94 | 94 | ||
95 | do_timer_interrupt_hook(); | 95 | do_timer_interrupt_hook(); |
96 | 96 | ||
97 | #ifdef CONFIG_MCA | ||
97 | if (MCA_bus) { | 98 | if (MCA_bus) { |
98 | /* The PS/2 uses level-triggered interrupts. You can't | 99 | /* The PS/2 uses level-triggered interrupts. You can't |
99 | turn them off, nor would you want to (any attempt to | 100 | turn them off, nor would you want to (any attempt to |
@@ -107,6 +108,7 @@ irqreturn_t timer_interrupt(int irq, void *dev_id) | |||
107 | u8 irq_v = inb_p( 0x61 ); /* read the current state */ | 108 | u8 irq_v = inb_p( 0x61 ); /* read the current state */ |
108 | outb_p( irq_v|0x80, 0x61 ); /* reset the IRQ */ | 109 | outb_p( irq_v|0x80, 0x61 ); /* reset the IRQ */ |
109 | } | 110 | } |
111 | #endif | ||
110 | 112 | ||
111 | return IRQ_HANDLED; | 113 | return IRQ_HANDLED; |
112 | } | 114 | } |
diff --git a/arch/x86/kernel/time_64.c b/arch/x86/kernel/time_64.c index 2be67c24909e..207a7a1d7ac5 100644 --- a/arch/x86/kernel/time_64.c +++ b/arch/x86/kernel/time_64.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/interrupt.h> | 16 | #include <linux/interrupt.h> |
17 | #include <linux/module.h> | 17 | #include <linux/module.h> |
18 | #include <linux/time.h> | 18 | #include <linux/time.h> |
19 | #include <linux/mca.h> | ||
19 | 20 | ||
20 | #include <asm/i8253.h> | 21 | #include <asm/i8253.h> |
21 | #include <asm/hpet.h> | 22 | #include <asm/hpet.h> |
@@ -54,6 +55,13 @@ irqreturn_t timer_interrupt(int irq, void *dev_id) | |||
54 | 55 | ||
55 | global_clock_event->event_handler(global_clock_event); | 56 | global_clock_event->event_handler(global_clock_event); |
56 | 57 | ||
58 | #ifdef CONFIG_MCA | ||
59 | if (MCA_bus) { | ||
60 | u8 irq_v = inb_p(0x61); /* read the current state */ | ||
61 | outb_p(irq_v|0x80, 0x61); /* reset the IRQ */ | ||
62 | } | ||
63 | #endif | ||
64 | |||
57 | return IRQ_HANDLED; | 65 | return IRQ_HANDLED; |
58 | } | 66 | } |
59 | 67 | ||