aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/time_64.c
diff options
context:
space:
mode:
authorGlauber Costa <gcosta@redhat.com>2008-07-21 17:42:52 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-13 04:21:47 -0400
commit33c053d0aec344c8b2ad6966d904ebeff64e590b (patch)
tree4c5688f392c8a762c83a55be8e9401432e28eab1 /arch/x86/kernel/time_64.c
parent2c460d0b6813a5d2a7d571b0b561e4e727036dd7 (diff)
x86: wrap MCA_bus test around an ifdef
Only test for MCA_bus if support for MCA is compiled in. Also, for x86_64, write the code inside the conditional for consistency with i386. It won't bite us, since it'll probably never select CONFIG_MCA anyway. Signed-off-by: Glauber Costa <gcosta@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/time_64.c')
-rw-r--r--arch/x86/kernel/time_64.c8
1 files changed, 8 insertions, 0 deletions
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