Skip to content

Commit

Permalink
sh: intc: Allocate subgroup virq backing desc directly.
Browse files Browse the repository at this point in the history
This switches to using irq_alloc_desc() directly for subgroup IRQs.
We still need to call activate_irq() on these in order to make them
requestable, at least up until these get moved in to their own irq
domain..

Signed-off-by: Paul Mundt <[email protected]>
  • Loading branch information
pmundt committed Jun 13, 2012
1 parent be9c002 commit 123df01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/sh/intc/virq.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,14 @@ static void __init intc_subgroup_map(struct intc_desc_int *d)
if (radix_tree_deref_retry(entry))
goto restart;

irq = create_irq();
irq = irq_alloc_desc(numa_node_id());
if (unlikely(irq < 0)) {
pr_err("no more free IRQs, bailing..\n");
break;
}

activate_irq(irq);

pr_info("Setting up a chained VIRQ from %d -> %d\n",
irq, entry->pirq);

Expand Down

0 comments on commit 123df01

Please sign in to comment.