score: Use generic show_interrupts()

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Chen Liqin <liqin.chen@sunplusct.com>

authored by Thomas Gleixner and committed by Chen Liqin 324808c2 99135351

+1 -39
+1
arch/score/Kconfig
··· 4 4 def_bool y 5 5 select HAVE_GENERIC_HARDIRQS 6 6 select GENERIC_HARDIRQS_NO_DEPRECATED 7 + select GENERIC_IRQ_SHOW 7 8 8 9 choice 9 10 prompt "System type"
-39
arch/score/kernel/irq.c
··· 109 109 : : "r" (EXCEPTION_VECTOR_BASE_ADDR | \ 110 110 VECTOR_ADDRESS_OFFSET_MODE16)); 111 111 } 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 - }