Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191523
b: refs/heads/master
c: d464207
h: refs/heads/master
i:
  191521: 4e1b34c
  191519: 759113a
v: v3
  • Loading branch information
Eric W. Biederman authored and H. Peter Anvin committed May 4, 2010
1 parent fdd9f34 commit b2f0c52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 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: 7716a5c4ff5f1f3dc5e9edcab125cbf7fceef0af
refs/heads/master: d464207c4fdd70c2a0febd4f9c58206fa915bb36
13 changes: 4 additions & 9 deletions trunk/arch/x86/kernel/apic/io_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,7 @@ static inline int irq_trigger(int idx)
int (*ioapic_renumber_irq)(int ioapic, int irq);
static int pin_2_irq(int idx, int apic, int pin)
{
int irq, i;
int irq;
int bus = mp_irqs[idx].srcbus;

/*
Expand All @@ -1031,18 +1031,13 @@ static int pin_2_irq(int idx, int apic, int pin)
if (test_bit(bus, mp_bus_not_pci)) {
irq = mp_irqs[idx].srcbusirq;
} else {
/*
* PCI IRQs are mapped in order
*/
i = irq = 0;
while (i < apic)
irq += nr_ioapic_registers[i++];
irq += pin;
u32 gsi = mp_gsi_routing[apic].gsi_base + pin;
/*
* For MPS mode, so far only needed by ES7000 platform
*/
if (ioapic_renumber_irq)
irq = ioapic_renumber_irq(apic, irq);
gsi = ioapic_renumber_irq(apic, gsi);
irq = gsi;
}

#ifdef CONFIG_X86_32
Expand Down

0 comments on commit b2f0c52

Please sign in to comment.