diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2001-05-09 00:32:39 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2001-05-09 00:32:39 +0000 |
commit | 75337fb90e0ef6702c1bb2337334e258f7119b76 (patch) | |
tree | 82c9f8bc37fa710e51f03ce212e482ace4899a4c /arch/mips/kernel/irq.c | |
parent | 6539eed842af755d3ffea581e11b86ca8c5be94d (diff) |
Rewrite of Indy IRQs to new style.
Diffstat (limited to 'arch/mips/kernel/irq.c')
-rw-r--r-- | arch/mips/kernel/irq.c | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/arch/mips/kernel/irq.c b/arch/mips/kernel/irq.c index ba73db690..7a779e2dd 100644 --- a/arch/mips/kernel/irq.c +++ b/arch/mips/kernel/irq.c @@ -76,6 +76,9 @@ int get_irq_list(char *buf) int i; p += sprintf(p, " "); + for (i=0; i < 1 /*smp_num_cpus*/; i++) + p += sprintf(p, "CPU%d ", i); + *p++ = '\n'; for (i = 0 ; i < NR_IRQS ; i++) { action = irq_desc[i].action; @@ -182,10 +185,6 @@ void disable_irq(unsigned int irq) } } -void disable_irq(unsigned int irq) -{ -} - /** * enable_irq - enable interrupt handling on an irq * @irq: Interrupt to enable @@ -228,7 +227,7 @@ void enable_irq(unsigned int irq) * SMP cross-CPU interrupts have their own specific * handlers). */ -asmlinkage unsigned int do_IRQ(int irq, struct pt_regs regs) +asmlinkage unsigned int do_IRQ(int irq, struct pt_regs *regs) { /* * We ack quickly, we don't want the irq controller @@ -694,3 +693,15 @@ int setup_irq(unsigned int irq, struct irqaction * new) /* register_irq_proc(irq); */ return 0; } + +void __init init_generic_irq(void) +{ + int i; + + for (i = 0; i < NR_IRQS; i++) { + irq_desc[i].status = IRQ_DISABLED; + irq_desc[i].action = NULL; + irq_desc[i].depth = 1; + irq_desc[i].handler = &no_irq_type; + } +} |