irq, fs/proc: replace loop with nr_irqs for proc/stat
[deliverable/linux.git] / include / linux / interrupt.h
index 511803853a5bfac2b47d09599adeaa43c7a16221..d4039a0b23f403df9c028420d9a86816d0974cd0 100644 (file)
 
 extern int nr_irqs;
 
+#ifndef CONFIG_GENERIC_HARDIRQS
+#define for_each_irq_desc(irq, desc)           \
+       for (irq = 0; irq < nr_irqs; irq++)
+#endif
+
 /*
  * These correspond to the IORESOURCE_IRQ_* defines in
  * linux/ioport.h to select the interrupt line behaviour.  When
This page took 0.025424 seconds and 5 git commands to generate.