Skip to content

Commit

Permalink
x86: check with without_new in show_interrupts
Browse files Browse the repository at this point in the history
so we don't get new one that we don't need it.

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Oct 16, 2008
1 parent 46926b6 commit 1d5f6b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/x86/kernel/irq_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ int show_interrupts(struct seq_file *p, void *v)

if (i < nr_irqs) {
unsigned any_count = 0;
struct irq_desc *desc = irq_to_desc(i);
struct irq_desc *desc = __irq_to_desc(i);

if (!desc)
return 0;

spin_lock_irqsave(&desc->lock, flags);
#ifndef CONFIG_SMP
Expand Down

0 comments on commit 1d5f6b3

Please sign in to comment.