Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5bfb5b51 authored by Yinghai Lu's avatar Yinghai Lu Committed by Ingo Molnar
Browse files

irq: Add irq_node() primitive



... to return irq_desc node info without #ifdefs at the callsites.

Signed-off-by: default avatarYinghai Lu <yinghai@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
LKML-Reference: <4A95C350.8060308@kernel.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 372e24b0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -41,6 +41,12 @@ extern struct irq_desc *irq_to_desc(unsigned int irq);
			;						\
		else

#ifdef CONFIG_SMP
#define irq_node(irq)	(irq_to_desc(irq)->node)
#else
#define irq_node(irq)	0
#endif

#endif /* CONFIG_GENERIC_HARDIRQS */

#define for_each_irq_nr(irq)                   \