From: James S. <jsi...@us...> - 2001-10-31 18:43:59
|
Update of /cvsroot/linux-mips/linux/arch/mips/kernel In directory usw-pr-cvs1:/tmp/cvs-serv16408/kernel Modified Files: irq_cpu.c Log Message: Interrupt handler fixes. Index: irq_cpu.c =================================================================== RCS file: /cvsroot/linux-mips/linux/arch/mips/kernel/irq_cpu.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- irq_cpu.c 2001/10/22 19:16:44 1.2 +++ irq_cpu.c 2001/10/31 18:43:56 1.3 @@ -2,7 +2,7 @@ * Copyright 2001 MontaVista Software Inc. * Author: Jun Sun, js...@mv... or js...@ju... * - * This file define the irq handler for MIPS CPU interrupts. + * This file define the irq handler for MIPS CPU interrupts. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -65,7 +65,8 @@ static void mips_cpu_irq_end(unsigned int irq) { - mips_cpu_irq_enable(irq); + if(!(irq_desc[irq].status & (IRQ_DISABLED | IRQ_INPROGRESS))) + mips_cpu_irq_enable(irq); } static hw_irq_controller mips_cpu_irq_controller = { @@ -94,4 +95,4 @@ } mips_cpu_irq_base = irq_base; -} +} |