Re: PATCH to fix irq sharing and SA_INTERRUPT on x86. please review

Andrew Morton (akpm@digeo.com)
Mon, 24 Feb 2003 03:09:16 -0800


James Harper <james.harper@bigpond.com> wrote:
>
> further to my email yesterday (to which i've had no response :) i
> propose the attached patch to arch/i386/kernel/irq.c. it corrects what i
> see as a bug in interrupt handling.
>
> currently if a driver requests SA_INTERRUPT in an interrupt handler, it
> is only called with interrupts disabled if it is the first handler in
> the list.

ewww..

> my patch modifies setup_irq to put any interrupt with SA_INTERRUPT in
> the front of the handler queue (eg before any handlers without the flag).
>
> and also modifies handle_IRQ_event to only enable interrupts when it
> hits the first handler with SA_INTERRUPT not set.
>

Yes, that's a nice fix, thanks.

Other architectures appear to have inherited this bug.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/