Skip to content

Commit

Permalink
Merge branch 'irq-fixes-for-linus' of git://git.kernel.org/pub/scm/li…
Browse files Browse the repository at this point in the history
…nux/kernel/git/tip/linux-2.6-tip

* 'irq-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
  genirq: provide irq_to_desc() to non-genirq architectures too
  • Loading branch information
Linus Torvalds committed Jan 7, 2009
2 parents f94181d + be92d7a commit 7238eb4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/linux/irqnr.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@

#ifndef CONFIG_GENERIC_HARDIRQS
#include <asm/irq.h>
# define nr_irqs NR_IRQS

/*
* Wrappers for non-genirq architectures:
*/
#define nr_irqs NR_IRQS
#define irq_to_desc(irq) (&irq_desc[irq])

# define for_each_irq_desc(irq, desc) \
for (irq = 0; irq < nr_irqs; irq++)
Expand Down

0 comments on commit 7238eb4

Please sign in to comment.