Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145579
b: refs/heads/master
c: 024154c
h: refs/heads/master
i:
  145577: 0e7078f
  145575: aa1bce0
v: v3
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Apr 28, 2009
1 parent 3d2ff54 commit 6b73ef8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: a2f809b08ae4dddc1015c7dcd8659e5729e45b3e
refs/heads/master: 024154cfdd802654cb236a18c78b6e37351e2c49
7 changes: 6 additions & 1 deletion trunk/arch/x86/kernel/apic/io_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -3963,14 +3963,19 @@ int io_apic_set_pci_routing(struct device *dev, int ioapic, int pin, int irq,
{
struct irq_desc *desc;
struct irq_cfg *cfg;
int node = cpu_to_node(boot_cpu_id);
int node;

if (!IO_APIC_IRQ(irq)) {
apic_printk(APIC_QUIET,KERN_ERR "IOAPIC[%d]: Invalid reference to IRQ 0\n",
ioapic);
return -EINVAL;
}

if (dev)
node = dev_to_node(dev);
else
node = cpu_to_node(boot_cpu_id);

desc = irq_to_desc_alloc_node(irq, node);
if (!desc) {
printk(KERN_INFO "can not get irq_desc %d\n", irq);
Expand Down

0 comments on commit 6b73ef8

Please sign in to comment.