[AVR32] Remove bogus comment in arch/avr32/kernel/irq.c
[pv_ops_mirror.git] / arch / avr32 / kernel / irq.c
blob61f2de266f62a3d0060900bdf4ea41bf160726af
1 /*
2 * Copyright (C) 2004-2006 Atmel Corporation
4 * Based on arch/i386/kernel/irq.c
5 * Copyright (C) 1992, 1998 Linus Torvalds, Ingo Molnar
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
12 #include <linux/interrupt.h>
13 #include <linux/irq.h>
14 #include <linux/kernel_stat.h>
15 #include <linux/proc_fs.h>
16 #include <linux/seq_file.h>
17 #include <linux/sysdev.h>
20 * 'what should we do if we get a hw irq event on an illegal vector'.
21 * each architecture has to answer this themselves.
23 void ack_bad_irq(unsigned int irq)
25 printk("unexpected IRQ %u\n", irq);
28 #ifdef CONFIG_PROC_FS
29 int show_interrupts(struct seq_file *p, void *v)
31 int i = *(loff_t *)v, cpu;
32 struct irqaction *action;
33 unsigned long flags;
35 if (i == 0) {
36 seq_puts(p, " ");
37 for_each_online_cpu(cpu)
38 seq_printf(p, "CPU%d ", cpu);
39 seq_putc(p, '\n');
42 if (i < NR_IRQS) {
43 spin_lock_irqsave(&irq_desc[i].lock, flags);
44 action = irq_desc[i].action;
45 if (!action)
46 goto unlock;
48 seq_printf(p, "%3d: ", i);
49 for_each_online_cpu(cpu)
50 seq_printf(p, "%10u ", kstat_cpu(cpu).irqs[i]);
51 seq_printf(p, " %8s", irq_desc[i].chip->name ? : "-");
52 seq_printf(p, " %s", action->name);
53 for (action = action->next; action; action = action->next)
54 seq_printf(p, ", %s", action->name);
56 seq_putc(p, '\n');
57 unlock:
58 spin_unlock_irqrestore(&irq_desc[i].lock, flags);
61 return 0;
63 #endif