]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
[POWERPC] add virq_to_hw accessor routine
authorGeoff Levand <geoffrey.levand@am.sony.com>
Wed, 22 Nov 2006 23:46:48 +0000 (00:46 +0100)
committerPaul Mackerras <paulus@samba.org>
Mon, 4 Dec 2006 09:40:37 +0000 (20:40 +1100)
This adds an accessor routine virq_to_hw() to the
virq routines which hides the implementation details
of the virq to hwirq map.

Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
include/asm-powerpc/irq.h

index f960f5346f406d717590d337de07c6a0d9cbb384..46476e9a494ad6d2ec615f562b6a6449b69d4c91 100644 (file)
@@ -135,6 +135,10 @@ struct irq_map_entry {
 
 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