Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99662
b: refs/heads/master
c: 3e8631d
h: refs/heads/master
v: v3
  • Loading branch information
Pavel Machek authored and Thomas Gleixner committed May 24, 2008
1 parent 62941db commit c2c5b6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 15d613cb25efd978dd55592d011a6ffc487b3432
refs/heads/master: 3e8631d27088f394b6788829e238a60bf07d47ab
20 changes: 3 additions & 17 deletions trunk/arch/x86/kernel/i8259.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,24 +175,14 @@ static void mask_and_ack_8259A(unsigned int irq)
if (irq & 8) {
inb(PIC_SLAVE_IMR); /* DUMMY - (do we need this?) */
outb(cached_slave_mask, PIC_SLAVE_IMR);
#ifndef CONFIG_X86_64
outb(0x60+(irq&7),PIC_SLAVE_CMD);/* 'Specific EOI' to slave */
outb(0x60+PIC_CASCADE_IR,PIC_MASTER_CMD); /* 'Specific EOI' to master-IRQ2 */
#else /* CONFIG_X86_64 */
/* 'Specific EOI' to slave */
outb(0x60+(irq&7),PIC_SLAVE_CMD);
outb(0x60+(irq&7), PIC_SLAVE_CMD);
/* 'Specific EOI' to master-IRQ2 */
outb(0x60+PIC_CASCADE_IR,PIC_MASTER_CMD);
#endif /* CONFIG_X86_64 */
outb(0x60+PIC_CASCADE_IR, PIC_MASTER_CMD);
} else {
inb(PIC_MASTER_IMR); /* DUMMY - (do we need this?) */
outb(cached_master_mask, PIC_MASTER_IMR);
#ifndef CONFIG_X86_64
outb(0x60+irq,PIC_MASTER_CMD); /* 'Specific EOI to master */
#else /* CONFIG_X86_64 */
/* 'Specific EOI' to master */
outb(0x60+irq,PIC_MASTER_CMD);
#endif /* CONFIG_X86_64 */
outb(0x60+irq, PIC_MASTER_CMD); /* 'Specific EOI to master */
}
spin_unlock_irqrestore(&i8259A_lock, flags);
return;
Expand All @@ -215,12 +205,8 @@ static void mask_and_ack_8259A(unsigned int irq)
* lets ACK and report it. [once per IRQ]
*/
if (!(spurious_irq_mask & irqmask)) {
#ifndef CONFIG_X86_64
printk(KERN_DEBUG "spurious 8259A interrupt: IRQ%d.\n", irq);
#else /* CONFIG_X86_64 */
printk(KERN_DEBUG
"spurious 8259A interrupt: IRQ%d.\n", irq);
#endif /* CONFIG_X86_64 */
spurious_irq_mask |= irqmask;
}
atomic_inc(&irq_err_count);
Expand Down

0 comments on commit c2c5b6e

Please sign in to comment.