Re: Strange interrupt behaviour

Andi Kleen (ak@muc.de)
Thu, 16 Jul 1998 02:26:22 +0200


On Wed, Jul 15, 1998 at 09:02:14PM +0200, Andrea Arcangeli wrote:
> On 15 Jul 1998, Andi Kleen wrote:
>
> >This does not seem to handle nested interrupts correctly. A nested IRQ
>
> So while the irq 0 handler is running another irq 0 handler could be
> recalled if interrupts are enabled?

It can happen, but seldom (it is a race)
>
> And how do you handle a per CPU stack?

How? (I'm not sure if I follow you here)

Just use smp_processor_id() to select the right stack, just like
do_IRQ already does to update the per-CPU interrupt statistics.

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html