| * (C) Copyright 2007, Greg Ungerer <gerg@snapgear.com> |
| * This file is subject to the terms and conditions of the GNU General Public |
| * License. See the file COPYING in the main directory of this archive |
| #include <linux/kernel.h> |
| #include <linux/kernel_stat.h> |
| #include <linux/interrupt.h> |
| #include <linux/seq_file.h> |
| asmlinkage void do_IRQ(int irq, struct pt_regs *regs) |
| struct pt_regs *oldregs = set_irq_regs(regs); |
| int show_interrupts(struct seq_file *p, void *v) |
| int irq = *((loff_t *) v); |
| ap = irq_desc[irq].action; |
| seq_printf(p, "%3d: ", irq); |
| seq_printf(p, "%10u ", kstat_irqs(irq)); |
| seq_printf(p, "%14s ", irq_desc[irq].chip->name); |
| seq_printf(p, "%s", ap->name); |
| for (ap = ap->next; ap; ap = ap->next) |
| seq_printf(p, ", %s", ap->name); |