Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234204
b: refs/heads/master
c: 5cad61a
h: refs/heads/master
v: v3
  • Loading branch information
Ian Campbell authored and Konrad Rzeszutek Wilk committed Mar 10, 2011
1 parent b96712c commit 3e06c4e
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: 9a626612c2010699d9909a4c3141d3a38660f3b3
refs/heads/master: 5cad61a6ba6f4956a218ffbb64cafcc1daefaca0
15 changes: 6 additions & 9 deletions trunk/drivers/xen/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -649,19 +649,16 @@ int xen_map_pirq_gsi(unsigned pirq, unsigned gsi, int shareable, char *name)

static int find_unbound_pirq(int type)
{
int rc, i;
int rc;
struct physdev_get_free_pirq op_get_free_pirq;
op_get_free_pirq.type = type;

op_get_free_pirq.type = type;
rc = HYPERVISOR_physdev_op(PHYSDEVOP_get_free_pirq, &op_get_free_pirq);
if (!rc)
return op_get_free_pirq.pirq;

for (i = 0; i < nr_irqs; i++) {
if (pirq_to_irq[i] < 0)
return i;
}
return -1;
WARN_ONCE(rc == -ENOSYS,
"hypervisor does not support the PHYSDEVOP_get_free_pirq interface\n");

return rc ? -1 : op_get_free_pirq.pirq;
}

int xen_allocate_pirq_msi(char *name, int *pirq, int alloc_pirq)
Expand Down

0 comments on commit 3e06c4e

Please sign in to comment.