[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-5bfb5b51382f4bd01d9ced11503264d2cc74fe41@git.kernel.org>
Date: Sat, 29 Aug 2009 13:58:45 GMT
From: tip-bot for Yinghai Lu <yinghai@...nel.org>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
yinghai@...nel.org, jbarnes@...tuousgeek.org,
akpm@...ux-foundation.org, tglx@...utronix.de, mingo@...e.hu
Subject: [tip:irq/core] irq: Add irq_node() primitive
Commit-ID: 5bfb5b51382f4bd01d9ced11503264d2cc74fe41
Gitweb: http://git.kernel.org/tip/5bfb5b51382f4bd01d9ced11503264d2cc74fe41
Author: Yinghai Lu <yinghai@...nel.org>
AuthorDate: Wed, 26 Aug 2009 16:20:48 -0700
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Sat, 29 Aug 2009 15:53:00 +0200
irq: Add irq_node() primitive
... to return irq_desc node info without #ifdefs at the callsites.
Signed-off-by: Yinghai Lu <yinghai@...nel.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>
Cc: Jesse Barnes <jbarnes@...tuousgeek.org>
LKML-Reference: <4A95C350.8060308@...nel.org>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
include/linux/irqnr.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/include/linux/irqnr.h b/include/linux/irqnr.h
index ec87b21..7bf89bc 100644
--- a/include/linux/irqnr.h
+++ b/include/linux/irqnr.h
@@ -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) \
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists