mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
alpha: Use generic show_interrupts()
The only subtle difference is that alpha uses ACTUAL_NR_IRQS and prints the IRQF_DISABLED flag. Change the generic implementation to deal with ACTUAL_NR_IRQS if defined. The IRQF_DISABLED printing is pointless, as we nowadays run all interrupts with irqs disabled. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
a9eb076b21
commit
a6e120ed42
3 changed files with 17 additions and 59 deletions
|
|
@ -364,6 +364,10 @@ int __weak arch_show_interrupts(struct seq_file *p, int prec)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifndef ACTUAL_NR_IRQS
|
||||
# define ACTUAL_NR_IRQS nr_irqs
|
||||
#endif
|
||||
|
||||
int show_interrupts(struct seq_file *p, void *v)
|
||||
{
|
||||
static int prec;
|
||||
|
|
@ -373,10 +377,10 @@ int show_interrupts(struct seq_file *p, void *v)
|
|||
struct irqaction *action;
|
||||
struct irq_desc *desc;
|
||||
|
||||
if (i > nr_irqs)
|
||||
if (i > ACTUAL_NR_IRQS)
|
||||
return 0;
|
||||
|
||||
if (i == nr_irqs)
|
||||
if (i == ACTUAL_NR_IRQS)
|
||||
return arch_show_interrupts(p, prec);
|
||||
|
||||
/* print header and calculate the width of the first column */
|
||||
|
|
|
|||
Loading…
Reference in a new issue