Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234672
b: refs/heads/master
c: ed972cc
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner committed Feb 23, 2011
1 parent 2815d1b commit 7674f0f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 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: c8d6b8fe72216ca47e399204b58c8be0448d4083
refs/heads/master: ed972ccf434a9881a5881915ae04602af2776bad
19 changes: 13 additions & 6 deletions trunk/arch/x86/kernel/apic/io_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1398,15 +1398,12 @@ static bool __init io_apic_pin_not_connected(int idx, int apic_id, int pin)
return true;
}

static void __init setup_IO_APIC_irqs(void)
static void __init __io_apic_setup_irqs(unsigned int apic_id)
{
int apic_id, pin, idx, irq;
int node = cpu_to_node(0);
int idx, node = cpu_to_node(0);
unsigned int pin, irq;
struct irq_cfg *cfg;

apic_printk(APIC_VERBOSE, KERN_DEBUG "init IO_APIC IRQs\n");

for (apic_id = 0; apic_id < nr_ioapics; apic_id++)
for (pin = 0; pin < nr_ioapic_registers[apic_id]; pin++) {
idx = find_irq_entry(apic_id, pin, mp_INT);
if (io_apic_pin_not_connected(idx, apic_id, pin))
Expand Down Expand Up @@ -1439,6 +1436,16 @@ static void __init setup_IO_APIC_irqs(void)
}
}

static void __init setup_IO_APIC_irqs(void)
{
unsigned int apic_id;

apic_printk(APIC_VERBOSE, KERN_DEBUG "init IO_APIC IRQs\n");

for (apic_id = 0; apic_id < nr_ioapics; apic_id++)
__io_apic_setup_irqs(apic_id);
}

/*
* for the gsit that is not in first ioapic
* but could not use acpi_register_gsi()
Expand Down

0 comments on commit 7674f0f

Please sign in to comment.