Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113535
b: refs/heads/master
c: 33c053d
h: refs/heads/master
i:
  113533: 02e208a
  113531: 4202b1e
  113527: 316100a
  113519: a1b8707
  113503: 8db90b9
  113471: af2b897
  113407: 305f80c
v: v3
  • Loading branch information
Glauber Costa authored and Ingo Molnar committed Oct 13, 2008
1 parent 0ec4013 commit dcfe9fd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2c460d0b6813a5d2a7d571b0b561e4e727036dd7
refs/heads/master: 33c053d0aec344c8b2ad6966d904ebeff64e590b
2 changes: 2 additions & 0 deletions trunk/arch/x86/kernel/time_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ irqreturn_t timer_interrupt(int irq, void *dev_id)

do_timer_interrupt_hook();

#ifdef CONFIG_MCA
if (MCA_bus) {
/* The PS/2 uses level-triggered interrupts. You can't
turn them off, nor would you want to (any attempt to
Expand All @@ -107,6 +108,7 @@ irqreturn_t timer_interrupt(int irq, void *dev_id)
u8 irq_v = inb_p( 0x61 ); /* read the current state */
outb_p( irq_v|0x80, 0x61 ); /* reset the IRQ */
}
#endif

return IRQ_HANDLED;
}
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/x86/kernel/time_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/time.h>
#include <linux/mca.h>

#include <asm/i8253.h>
#include <asm/hpet.h>
Expand Down Expand Up @@ -54,6 +55,13 @@ irqreturn_t timer_interrupt(int irq, void *dev_id)

global_clock_event->event_handler(global_clock_event);

#ifdef CONFIG_MCA
if (MCA_bus) {
u8 irq_v = inb_p(0x61); /* read the current state */
outb_p(irq_v|0x80, 0x61); /* reset the IRQ */
}
#endif

return IRQ_HANDLED;
}

Expand Down

0 comments on commit dcfe9fd

Please sign in to comment.