aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/irq_32.c
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-08-19 23:49:48 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-16 10:52:05 -0400
commit0799e432acfda879eaeef9622426bfa1434f3786 (patch)
treebc9a1d07438c52df08ab1e283ccd0a191b5fe05d /arch/x86/kernel/irq_32.c
parent85c0f90978bf50596dbd23854648020f1f9b5bfd (diff)
x86: use nr_irqs
also add first_free_entry and pin_map_size, which were NR_IRQS derived constants. Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/irq_32.c')
-rw-r--r--arch/x86/kernel/irq_32.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kernel/irq_32.c b/arch/x86/kernel/irq_32.c
index b71e02d42f4f..4c7ffb32854c 100644
--- a/arch/x86/kernel/irq_32.c
+++ b/arch/x86/kernel/irq_32.c
@@ -226,7 +226,7 @@ unsigned int do_IRQ(struct pt_regs *regs)
226 int overflow, irq = ~regs->orig_ax; 226 int overflow, irq = ~regs->orig_ax;
227 struct irq_desc *desc = irq_desc + irq; 227 struct irq_desc *desc = irq_desc + irq;
228 228
229 if (unlikely((unsigned)irq >= NR_IRQS)) { 229 if (unlikely((unsigned)irq >= nr_irqs)) {
230 printk(KERN_EMERG "%s: cannot handle IRQ %d\n", 230 printk(KERN_EMERG "%s: cannot handle IRQ %d\n",
231 __func__, irq); 231 __func__, irq);
232 BUG(); 232 BUG();
@@ -271,7 +271,7 @@ int show_interrupts(struct seq_file *p, void *v)
271 seq_putc(p, '\n'); 271 seq_putc(p, '\n');
272 } 272 }
273 273
274 if (i < NR_IRQS) { 274 if (i < nr_irqs) {
275 unsigned any_count = 0; 275 unsigned any_count = 0;
276 276
277 spin_lock_irqsave(&irq_desc[i].lock, flags); 277 spin_lock_irqsave(&irq_desc[i].lock, flags);
@@ -303,7 +303,7 @@ int show_interrupts(struct seq_file *p, void *v)
303 seq_putc(p, '\n'); 303 seq_putc(p, '\n');
304skip: 304skip:
305 spin_unlock_irqrestore(&irq_desc[i].lock, flags); 305 spin_unlock_irqrestore(&irq_desc[i].lock, flags);
306 } else if (i == NR_IRQS) { 306 } else if (i == nr_irqs) {
307 seq_printf(p, "NMI: "); 307 seq_printf(p, "NMI: ");
308 for_each_online_cpu(j) 308 for_each_online_cpu(j)
309 seq_printf(p, "%10u ", nmi_count(j)); 309 seq_printf(p, "%10u ", nmi_count(j));
@@ -396,7 +396,7 @@ void fixup_irqs(cpumask_t map)
396 unsigned int irq; 396 unsigned int irq;
397 static int warned; 397 static int warned;
398 398
399 for (irq = 0; irq < NR_IRQS; irq++) { 399 for (irq = 0; irq < nr_irqs; irq++) {
400 cpumask_t mask; 400 cpumask_t mask;
401 if (irq == 2) 401 if (irq == 2)
402 continue; 402 continue;