diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-08-19 23:50:16 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-16 10:52:51 -0400 |
commit | 1d5f6b36c4736af1dac396d6267eb53dcc8c0021 (patch) | |
tree | 80b7fe11fa42cabd3af3fddeef53f0126943ec22 /arch/x86 | |
parent | 46926b67fc663d357a1a8174328998a9e49da0b8 (diff) |
x86: check with without_new in show_interrupts
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>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/irq_64.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/kernel/irq_64.c b/arch/x86/kernel/irq_64.c index f58b995b30ee..f337f87c1e16 100644 --- a/arch/x86/kernel/irq_64.c +++ b/arch/x86/kernel/irq_64.c | |||
@@ -83,7 +83,10 @@ int show_interrupts(struct seq_file *p, void *v) | |||
83 | 83 | ||
84 | if (i < nr_irqs) { | 84 | if (i < nr_irqs) { |
85 | unsigned any_count = 0; | 85 | unsigned any_count = 0; |
86 | struct irq_desc *desc = irq_to_desc(i); | 86 | struct irq_desc *desc = __irq_to_desc(i); |
87 | |||
88 | if (!desc) | ||
89 | return 0; | ||
87 | 90 | ||
88 | spin_lock_irqsave(&desc->lock, flags); | 91 | spin_lock_irqsave(&desc->lock, flags); |
89 | #ifndef CONFIG_SMP | 92 | #ifndef CONFIG_SMP |