Skip to content

Commit 4bdab7e

Browse files
committed
m32r: Use generic show_interrupts()
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 27e5c5a commit 4bdab7e

2 files changed

Lines changed: 1 addition & 45 deletions

File tree

‎arch/m32r/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ config M32R
1010
select HAVE_GENERIC_HARDIRQS
1111
select GENERIC_HARDIRQS_NO_DEPRECATED
1212
select GENERIC_IRQ_PROBE
13+
select GENERIC_IRQ_SHOW
1314

1415
config SBUS
1516
bool

‎arch/m32r/kernel/irq.c‎

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -18,54 +18,9 @@
1818

1919
#include <linux/kernel_stat.h>
2020
#include <linux/interrupt.h>
21-
#include <linux/seq_file.h>
2221
#include <linux/module.h>
2322
#include <asm/uaccess.h>
2423

25-
/*
26-
* Generic, controller-independent functions:
27-
*/
28-
29-
int show_interrupts(struct seq_file *p, void *v)
30-
{
31-
int i = *(loff_t *) v, j;
32-
struct irqaction * action;
33-
unsigned long flags;
34-
35-
if (i == 0) {
36-
seq_printf(p, " ");
37-
for_each_online_cpu(j)
38-
seq_printf(p, "CPU%d ",j);
39-
seq_putc(p, '\n');
40-
}
41-
42-
if (i < NR_IRQS) {
43-
struct irq_desc *desc = irq_to_desc(i);
44-
45-
raw_spin_lock_irqsave(&desc->lock, flags);
46-
action = desc->action;
47-
if (!action)
48-
goto skip;
49-
seq_printf(p, "%3d: ",i);
50-
#ifndef CONFIG_SMP
51-
seq_printf(p, "%10u ", kstat_irqs(i));
52-
#else
53-
for_each_online_cpu(j)
54-
seq_printf(p, "%10u ", kstat_irqs_cpu(i, j));
55-
#endif
56-
seq_printf(p, " %14s", desc->irq_data.chip->name);
57-
seq_printf(p, " %s", action->name);
58-
59-
for (action=action->next; action; action = action->next)
60-
seq_printf(p, ", %s", action->name);
61-
62-
seq_putc(p, '\n');
63-
skip:
64-
raw_spin_unlock_irqrestore(&desc->lock, flags);
65-
}
66-
return 0;
67-
}
68-
6924
/*
7025
* do_IRQ handles all normal device IRQs (the special
7126
* SMP cross-CPU interrupts have their own specific

0 commit comments

Comments
 (0)