Skip to content

Commit 324808c

Browse files
KAGA-KOKOChen Liqin
authored andcommitted
score: Use generic show_interrupts()
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Chen Liqin <liqin.chen@sunplusct.com>
1 parent 9913535 commit 324808c

2 files changed

Lines changed: 1 addition & 39 deletions

File tree

‎arch/score/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ config SCORE
44
def_bool y
55
select HAVE_GENERIC_HARDIRQS
66
select GENERIC_HARDIRQS_NO_DEPRECATED
7+
select GENERIC_IRQ_SHOW
78

89
choice
910
prompt "System type"

‎arch/score/kernel/irq.c‎

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -109,42 +109,3 @@ void __init init_IRQ(void)
109109
: : "r" (EXCEPTION_VECTOR_BASE_ADDR | \
110110
VECTOR_ADDRESS_OFFSET_MODE16));
111111
}
112-
113-
/*
114-
* Generic, controller-independent functions:
115-
*/
116-
int show_interrupts(struct seq_file *p, void *v)
117-
{
118-
int i = *(loff_t *)v, cpu;
119-
struct irqaction *action;
120-
unsigned long flags;
121-
122-
if (i == 0) {
123-
seq_puts(p, " ");
124-
for_each_online_cpu(cpu)
125-
seq_printf(p, "CPU%d ", cpu);
126-
seq_putc(p, '\n');
127-
}
128-
129-
if (i < NR_IRQS) {
130-
struct irq_desc *desc = irq_to_desc(i);
131-
132-
raw_spin_lock_irqsave(&desc->lock, flags);
133-
action = desc->action;
134-
if (!action)
135-
goto unlock;
136-
137-
seq_printf(p, "%3d: ", i);
138-
seq_printf(p, "%10u ", kstat_irqs(i));
139-
seq_printf(p, " %8s", irq_desc_get_chip(desc)->name ? : "-");
140-
seq_printf(p, " %s", action->name);
141-
for (action = action->next; action; action = action->next)
142-
seq_printf(p, ", %s", action->name);
143-
144-
seq_putc(p, '\n');
145-
unlock:
146-
raw_spin_unlock_irqrestore(&desc->lock, flags);
147-
}
148-
149-
return 0;
150-
}

0 commit comments

Comments
 (0)