diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2011-03-24 13:25:20 -0400 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2011-03-24 15:35:57 -0400 |
| commit | df31a0a06f00a9b54a5cd4eaef59ebc6ca629b78 (patch) | |
| tree | 1bfb14f30405e31e3516b97a5c082262a576acd5 /arch/um/kernel | |
| parent | 0ebec35f683c4e94e4bfb877b71598e79b131638 (diff) | |
um: Use generic show_interrupts()
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/um/kernel')
| -rw-r--r-- | arch/um/kernel/irq.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/arch/um/kernel/irq.c b/arch/um/kernel/irq.c index d76d8c8ded56..9e485c770308 100644 --- a/arch/um/kernel/irq.c +++ b/arch/um/kernel/irq.c | |||
| @@ -18,52 +18,6 @@ | |||
| 18 | #include "os.h" | 18 | #include "os.h" |
| 19 | 19 | ||
| 20 | /* | 20 | /* |
| 21 | * Generic, controller-independent functions: | ||
| 22 | */ | ||
| 23 | |||
| 24 | int show_interrupts(struct seq_file *p, void *v) | ||
| 25 | { | ||
| 26 | int i = *(loff_t *) v, j; | ||
| 27 | struct irqaction * action; | ||
| 28 | unsigned long flags; | ||
| 29 | |||
| 30 | if (i == 0) { | ||
| 31 | seq_printf(p, " "); | ||
| 32 | for_each_online_cpu(j) | ||
| 33 | seq_printf(p, "CPU%d ",j); | ||
| 34 | seq_putc(p, '\n'); | ||
| 35 | } | ||
| 36 | |||
| 37 | if (i < NR_IRQS) { | ||
| 38 | struct irq_desc *desc = irq_to_desc(i); | ||
| 39 | |||
| 40 | raw_spin_lock_irqsave(&desc->lock, flags); | ||
| 41 | action = desc->action; | ||
| 42 | if (!action) | ||
| 43 | goto skip; | ||
| 44 | seq_printf(p, "%3d: ",i); | ||
| 45 | #ifndef CONFIG_SMP | ||
| 46 | seq_printf(p, "%10u ", kstat_irqs(i)); | ||
| 47 | #else | ||
| 48 | for_each_online_cpu(j) | ||
| 49 | seq_printf(p, "%10u ", kstat_irqs_cpu(i, j)); | ||
| 50 | #endif | ||
| 51 | seq_printf(p, " %14s", irq_desc_get_chip(desc)->name); | ||
| 52 | seq_printf(p, " %s", action->name); | ||
| 53 | |||
| 54 | for (action=action->next; action; action = action->next) | ||
| 55 | seq_printf(p, ", %s", action->name); | ||
| 56 | |||
| 57 | seq_putc(p, '\n'); | ||
| 58 | skip: | ||
| 59 | raw_spin_unlock_irqrestore(&desc->lock, flags); | ||
| 60 | } else if (i == NR_IRQS) | ||
| 61 | seq_putc(p, '\n'); | ||
| 62 | |||
| 63 | return 0; | ||
| 64 | } | ||
| 65 | |||
| 66 | /* | ||
| 67 | * This list is accessed under irq_lock, except in sigio_handler, | 21 | * This list is accessed under irq_lock, except in sigio_handler, |
| 68 | * where it is safe from being modified. IRQ handlers won't change it - | 22 | * where it is safe from being modified. IRQ handlers won't change it - |
| 69 | * if an IRQ source has vanished, it will be freed by free_irqs just | 23 | * if an IRQ source has vanished, it will be freed by free_irqs just |
