aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq/spurious.c
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-08-19 23:49:47 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-16 10:52:05 -0400
commit85c0f90978bf50596dbd23854648020f1f9b5bfd (patch)
treef66c598bb37b925dd6c74e4ce1fb06345c742c01 /kernel/irq/spurious.c
parent6da55c3e8da88e8a7cb6452160776ad6706798ad (diff)
irq: introduce nr_irqs
at this point nr_irqs is equal NR_IRQS convert a few easy users from NR_IRQS to dynamic nr_irqs. v2: according to Eric, we need to take care of arch without generic_hardirqs Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/irq/spurious.c')
-rw-r--r--kernel/irq/spurious.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/irq/spurious.c b/kernel/irq/spurious.c
index 19fe9d6ebfe8..e26ca1e90c08 100644
--- a/kernel/irq/spurious.c
+++ b/kernel/irq/spurious.c
@@ -91,7 +91,7 @@ static int misrouted_irq(int irq)
91 int i; 91 int i;
92 int ok = 0; 92 int ok = 0;
93 93
94 for (i = 1; i < NR_IRQS; i++) { 94 for (i = 1; i < nr_irqs; i++) {
95 struct irq_desc *desc = irq_desc + i; 95 struct irq_desc *desc = irq_desc + i;
96 96
97 if (i == irq) /* Already tried */ 97 if (i == irq) /* Already tried */
@@ -107,7 +107,7 @@ static int misrouted_irq(int irq)
107static void poll_spurious_irqs(unsigned long dummy) 107static void poll_spurious_irqs(unsigned long dummy)
108{ 108{
109 int i; 109 int i;
110 for (i = 1; i < NR_IRQS; i++) { 110 for (i = 1; i < nr_irqs; i++) {
111 struct irq_desc *desc = irq_desc + i; 111 struct irq_desc *desc = irq_desc + i;
112 unsigned int status; 112 unsigned int status;
113 113