blob: 7a299e989f8bcee6dbfbc7ab305c458414245910 [file] [log] [blame]
Thomas Gleixnerdd3a1db2008-10-16 18:20:58 +02001#ifndef _LINUX_IRQNR_H
2#define _LINUX_IRQNR_H
3
4#ifndef CONFIG_GENERIC_HARDIRQS
5#include <asm/irq.h>
6# define nr_irqs NR_IRQS
7
8# define for_each_irq_desc(irq, desc) \
9 for (irq = 0; irq < nr_irqs; irq++)
Thomas Gleixnerdd3a1db2008-10-16 18:20:58 +020010
Yinghai Lu0b8f1ef2008-12-05 18:58:31 -080011static inline early_sparse_irq_init(void)
12{
13}
Thomas Gleixnerdd3a1db2008-10-16 18:20:58 +020014#endif
15
Thomas Gleixnerdd3a1db2008-10-16 18:20:58 +020016#endif