Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158626
b: refs/heads/master
c: 535b642
h: refs/heads/master
v: v3
  • Loading branch information
Jeremy Fitzhardinge committed Jul 14, 2009
1 parent d4c9da0 commit a2d78c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 875e68ec32fc5495f3edf987aaae1c52306184b7
refs/heads/master: 535b64291a9d1ff8bc54642494a5fce27e1e1170
5 changes: 2 additions & 3 deletions trunk/arch/x86/kernel/apic/io_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,18 +515,17 @@ static void __init replace_pin_at_irq_node(struct irq_cfg *cfg, int node,
int oldapic, int oldpin,
int newapic, int newpin)
{
struct irq_pin_list *entry = cfg->irq_2_pin;
struct irq_pin_list *entry;
int replaced = 0;

while (entry) {
for (entry = cfg->irq_2_pin; entry != NULL; entry = entry->next) {
if (entry->apic == oldapic && entry->pin == oldpin) {
entry->apic = newapic;
entry->pin = newpin;
replaced = 1;
/* every one is different, right? */
break;
}
entry = entry->next;
}

/* why? call replace before add? */
Expand Down

0 comments on commit a2d78c5

Please sign in to comment.