Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234206
b: refs/heads/master
c: 8135591
h: refs/heads/master
v: v3
  • Loading branch information
Ian Campbell authored and Konrad Rzeszutek Wilk committed Mar 10, 2011
1 parent 313853f commit 6f3bc1a
Show file tree
Hide file tree
Showing 2 changed files with 7 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: bf480d952bcf25e8ff7e95d2a23964107513ac51
refs/heads/master: 8135591e90c81462a6902f6ffa1f1ca021db077a
15 changes: 6 additions & 9 deletions trunk/drivers/xen/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -716,22 +716,19 @@ int xen_create_msi_irq(struct pci_dev *dev, struct msi_desc *msidesc, int type)
map_irq.entry_nr = msidesc->msi_attrib.entry_nr;
}

rc = HYPERVISOR_physdev_op(PHYSDEVOP_map_pirq, &map_irq);
if (rc) {
dev_warn(&dev->dev, "xen map irq failed %d\n", rc);
goto out;
}

spin_lock(&irq_mapping_update_lock);

irq = xen_allocate_irq_dynamic();

if (irq == -1)
goto out;

rc = HYPERVISOR_physdev_op(PHYSDEVOP_map_pirq, &map_irq);
if (rc) {
printk(KERN_WARNING "xen map irq failed %d\n", rc);

xen_free_irq(irq);

irq = -1;
goto out;
}
irq_info[irq] = mk_pirq_info(0, map_irq.pirq, 0, map_irq.index);

set_irq_chip_and_handler_name(irq, &xen_pirq_chip,
Expand Down

0 comments on commit 6f3bc1a

Please sign in to comment.