[PATCH 1/16] powerpc: add virq_to_hw accessor routine

Subsystems: the rest · Maintainer: Linus Torvalds

STALE7291d

2 messages, 2 authors, 2006-11-10 · open the first message on its own page

[PATCH 1/16] powerpc: add virq_to_hw accessor routine

From: Geoff Levand <hidden>
Date: 2006-11-10 20:02:00

This adds an accessor routine virq_to_hw() to the
virq routines which hides the implementation details
of the virq to hwirq map.


Signed-off-by: Geoff Levand <redacted>

---
 include/asm-powerpc/irq.h |    4 ++++
 1 file changed, 4 insertions(+)

Index: cell--common--6/include/asm-powerpc/irq.h
===================================================================
--- cell--common--6.orig/include/asm-powerpc/irq.h
+++ cell--common--6/include/asm-powerpc/irq.h
@@ -135,6 +135,10 @@
 
 extern struct irq_map_entry irq_map[NR_IRQS];
 
+static inline irq_hw_number_t virq_to_hw(unsigned int virq)
+{
+	return irq_map[virq].hwirq;
+}
 
 /**
  * irq_alloc_host - Allocate a new irq_host data structure

Re: [PATCH 1/16] powerpc: add virq_to_hw accessor routine

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2006-11-10 20:42:02

On Fri, 2006-11-10 at 12:01 -0800, Geoff Levand wrote:
This adds an accessor routine virq_to_hw() to the
virq routines which hides the implementation details
of the virq to hwirq map.


Signed-off-by: Geoff Levand <redacted>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help