提交 123df01e 编写于 作者: P Paul Mundt

sh: intc: Allocate subgroup virq backing desc directly.

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: NPaul Mundt <lethal@linux-sh.org>
上级 be9c0029
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册