x86: irq.c use same path for show_interrupts
Impact: cleanup SMP and !SMP will use same path for show_interrupts Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
This commit is contained in:
@@ -133,23 +133,15 @@ int show_interrupts(struct seq_file *p, void *v)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
spin_lock_irqsave(&desc->lock, flags);
|
spin_lock_irqsave(&desc->lock, flags);
|
||||||
#ifndef CONFIG_SMP
|
|
||||||
any_count = kstat_irqs(i);
|
|
||||||
#else
|
|
||||||
for_each_online_cpu(j)
|
for_each_online_cpu(j)
|
||||||
any_count |= kstat_irqs_cpu(i, j);
|
any_count |= kstat_irqs_cpu(i, j);
|
||||||
#endif
|
|
||||||
action = desc->action;
|
action = desc->action;
|
||||||
if (!action && !any_count)
|
if (!action && !any_count)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
seq_printf(p, "%*d: ", prec, i);
|
seq_printf(p, "%*d: ", prec, i);
|
||||||
#ifndef CONFIG_SMP
|
|
||||||
seq_printf(p, "%10u ", kstat_irqs(i));
|
|
||||||
#else
|
|
||||||
for_each_online_cpu(j)
|
for_each_online_cpu(j)
|
||||||
seq_printf(p, "%10u ", kstat_irqs_cpu(i, j));
|
seq_printf(p, "%10u ", kstat_irqs_cpu(i, j));
|
||||||
#endif
|
|
||||||
seq_printf(p, " %8s", desc->chip->name);
|
seq_printf(p, " %8s", desc->chip->name);
|
||||||
seq_printf(p, "-%-8s", desc->name);
|
seq_printf(p, "-%-8s", desc->name);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user