Skip to contentSkip to conversation

genirq: Fix up irq_node() for irq_data changes.

PATCH In review Paul Mundt 1 participant 2 messages Oct 28, 2010 IRQ

lore
Share & tools
lore

Paul Mundt

author
#0 lore raw

PATCH 1/1 genirq: Fix up irq_node() for irq_data changes.

Now that the node ID is tracked in the irq_data structure, update the irq_node() definition accordingly. This fixes up irq_node() usage under GENERIC_HARDIRQS_NO_DEPRECATED && SMP.

---

 include/linux/irqnr.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/irqnr.h +1 -1
index 05aa8c2..3bc4dca 100644
@@ -43,7 +43,7 @@ unsigned int irq_get_next_irq(unsigned int offset);
 		else
 
 #ifdef CONFIG_SMP
-#define irq_node(irq)	(irq_to_desc(irq)->node)
+#define irq_node(irq)	(irq_get_irq_data(irq)->node)
 #else
 #define irq_node(irq)	0
 #endif
#1 lore raw
Commit-ID:  4600d7c493f354a3e338a35bcf8a3bfbe815776a
Gitweb:     http://git.kernel.org/tip/4600d7c493f354a3e338a35bcf8a3bfbe815776a
Author:     Paul Mundt <[email protected]>
AuthorDate: Thu, 28 Oct 2010 11:30:31 +0900
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Thu, 28 Oct 2010 11:58:39 +0200

genirq: Fix up irq_node() for irq_data changes.

Now that the node ID is tracked in the irq_data structure, update the irq_node() definition accordingly. This fixes up irq_node() usage under GENERIC_HARDIRQS_NO_DEPRECATED && SMP.

LKML-Reference: <[email protected]>

---
 include/linux/irqnr.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/irqnr.h +1 -1
index 05aa8c23..3bc4dca 100644
@@ -43,7 +43,7 @@ unsigned int irq_get_next_irq(unsigned int offset);
 		else
 
 #ifdef CONFIG_SMP
-#define irq_node(irq)	(irq_to_desc(irq)->node)
+#define irq_node(irq)	(irq_get_irq_data(irq)->node)
 #else
 #define irq_node(irq)	0
 #endif