Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158624
b: refs/heads/master
c: d8c5206
h: refs/heads/master
v: v3
  • Loading branch information
Jeremy Fitzhardinge committed Jul 14, 2009
1 parent 12e47c2 commit 5bea901
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 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: 8e13d697febc1ba17e70ed88789255c8bc25aa41
refs/heads/master: d8c52063ed85dda61b70bc05b90711478db5dc17
8 changes: 1 addition & 7 deletions trunk/arch/x86/kernel/apic/io_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,23 +410,17 @@ static bool io_apic_level_ack_pending(struct irq_cfg *cfg)
unsigned long flags;

spin_lock_irqsave(&ioapic_lock, flags);
entry = cfg->irq_2_pin;
for (;;) {
for (entry = cfg->irq_2_pin; entry != NULL; entry = entry->next) {
unsigned int reg;
int pin;

if (!entry)
break;
pin = entry->pin;
reg = io_apic_read(entry->apic, 0x10 + pin*2);
/* Is the remote IRR bit set? */
if (reg & IO_APIC_REDIR_REMOTE_IRR) {
spin_unlock_irqrestore(&ioapic_lock, flags);
return true;
}
if (!entry->next)
break;
entry = entry->next;
}
spin_unlock_irqrestore(&ioapic_lock, flags);

Expand Down

0 comments on commit 5bea901

Please sign in to comment.