From: Geoff Levand Date: Wed, 22 Nov 2006 23:46:48 +0000 (+0100) Subject: [POWERPC] add virq_to_hw accessor routine X-Git-Tag: v3.12-rc1~31383^2~47^2~109^2~61 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e34226d2cd443a67f46fc531e3a6bc6e03843ce2;p=kernel%2Fkernel-generic.git [POWERPC] add virq_to_hw accessor routine 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 Signed-off-by: Geoff Levand Signed-off-by: Arnd Bergmann --- diff --git a/include/asm-powerpc/irq.h b/include/asm-powerpc/irq.h index f960f53..46476e9 100644 --- a/include/asm-powerpc/irq.h +++ b/include/asm-powerpc/irq.h @@ -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