Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Paul Mundt <lethal@linux-sh.org>

+3 -1
+3 -1
drivers/sh/intc/virq.c
··· 219 219 if (radix_tree_deref_retry(entry)) 220 220 goto restart; 221 221 222 - irq = create_irq(); 222 + irq = irq_alloc_desc(numa_node_id()); 223 223 if (unlikely(irq < 0)) { 224 224 pr_err("no more free IRQs, bailing..\n"); 225 225 break; 226 226 } 227 + 228 + activate_irq(irq); 227 229 228 230 pr_info("Setting up a chained VIRQ from %d -> %d\n", 229 231 irq, entry->pirq);