Skip to content

Commit

Permalink
[POWERPC] add virq_to_hw accessor routine
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geoff Levand authored and Paul Mackerras committed Dec 4, 2006
1 parent 897f112 commit e34226d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/asm-powerpc/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e34226d

Please sign in to comment.