~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/h8300/kernel/irq.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
        setup_vector();
156
156
 
157
157
        for (c = 0; c < NR_IRQS; c++)
158
 
                set_irq_chip_and_handler(c, &h8300irq_chip, handle_simple_irq);
 
158
                irq_set_chip_and_handler(c, &h8300irq_chip, handle_simple_irq);
159
159
}
160
160
 
161
161
asmlinkage void do_IRQ(int irq)
164
164
        generic_handle_irq(irq);
165
165
        irq_exit();
166
166
}
167
 
 
168
 
#if defined(CONFIG_PROC_FS)
169
 
int show_interrupts(struct seq_file *p, void *v)
170
 
{
171
 
        int i = *(loff_t *) v;
172
 
        struct irqaction * action;
173
 
        unsigned long flags;
174
 
 
175
 
        if (i == 0)
176
 
                seq_puts(p, "           CPU0");
177
 
 
178
 
        if (i < NR_IRQS) {
179
 
                raw_spin_lock_irqsave(&irq_desc[i].lock, flags);
180
 
                action = irq_desc[i].action;
181
 
                if (!action)
182
 
                        goto unlock;
183
 
                seq_printf(p, "%3d: ",i);
184
 
                seq_printf(p, "%10u ", kstat_irqs(i));
185
 
                seq_printf(p, " %14s", irq_desc[i].irq_data.chip->name);
186
 
                seq_printf(p, "-%-8s", irq_desc[i].name);
187
 
                seq_printf(p, "  %s", action->name);
188
 
 
189
 
                for (action=action->next; action; action = action->next)
190
 
                        seq_printf(p, ", %s", action->name);
191
 
                seq_putc(p, '\n');
192
 
unlock:
193
 
                raw_spin_unlock_irqrestore(&irq_desc[i].lock, flags);
194
 
        }
195
 
        return 0;
196
 
}
197
 
#endif