Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204783
b: refs/heads/master
c: 99ad198
h: refs/heads/master
i:
  204781: 97527dc
  204779: 9ee08d3
  204775: 43ad2fb
  204767: c0e3599
v: v3
  • Loading branch information
Stefano Stabellini authored and Jeremy Fitzhardinge committed Jul 22, 2010
1 parent be295ec commit c00efef
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 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: 016b6f5fe8398b0291cece60b749d7c930a2e09c
refs/heads/master: 99ad198c4978036bb9f7ebd11618b225b77046da
13 changes: 11 additions & 2 deletions trunk/drivers/xen/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,18 @@ static int find_unbound_irq(void)
int irq;
struct irq_desc *desc;

for (irq = 0; irq < nr_irqs; irq++)
for (irq = 0; irq < nr_irqs; irq++) {
desc = irq_to_desc(irq);
/* only 0->15 have init'd desc; handle irq > 16 */
if (desc == NULL)
break;
if (desc->chip == &no_irq_chip)
break;
if (desc->chip != &xen_dynamic_chip)
continue;
if (irq_info[irq].type == IRQT_UNBOUND)
break;
}

if (irq == nr_irqs)
panic("No available IRQ to bind to: increase nr_irqs!\n");
Expand All @@ -351,7 +360,7 @@ static int find_unbound_irq(void)
if (WARN_ON(desc == NULL))
return -1;

dynamic_irq_init(irq);
dynamic_irq_init_keep_chip_data(irq);

return irq;
}
Expand Down

0 comments on commit c00efef

Please sign in to comment.