[Top] [All Lists]

[PATCH] arch/mips/kernel/irq.c: do_IRQ() return value

Subject: [PATCH] arch/mips/kernel/irq.c: do_IRQ() return value
From: William Jhun <>
Date: Mon, 20 May 2002 17:13:20 -0700
User-agent: Mutt/1.2.5i
Though a comment in arch/i386/kernel/irq.c: do_IRQ() clearly states:

         * 0 return value means that this irq is already being
         * handled by some other CPU. (or is disabled)

it seems that the function can only ever return (1). We wrote some low-level
interrupt handling code that depends on the correct value of this function.
Is the following patch what was initially desired? Clearly this code came
from (or vice-versa) arch/i386/kernel/irq.c. I've sent a patch out for that
version to linux-kernel.

William Jhun

Index: arch/mips/kernel/irq.c
RCS file: /cvs/linux/arch/mips/kernel/irq.c,v
retrieving revision
diff -c -r1.38.2.6 irq.c
*** arch/mips/kernel/irq.c      2002/05/15 20:41:13
--- arch/mips/kernel/irq.c      2002/05/21 00:10:11
*** 488,494 ****
        if (softirq_pending(cpu))
!       return 1;
--- 488,494 ----
        if (softirq_pending(cpu))
!       return (action != NULL);

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] arch/mips/kernel/irq.c: do_IRQ() return value, William Jhun <=