2001-07-02 17:41:59

by Swami

[permalink] [raw]
Subject: Doubt in interrupts


Hi,

Are there any interrupts which doesn't affect local_irq_count(cpu) or that
doesn't enter do_IRQ()? (other than NMIs).

Because I'm implementing my own locking routine and I'm getting
interrupted during spin, but I check and found that in_interupt() returns
zero.


Thanking in advance,

Swami

--------------------------
http://www.swaminathans.com



2001-07-02 18:21:00

by Brian Gerst

[permalink] [raw]
Subject: Re: Doubt in interrupts

Swami wrote:
>
> Hi,
>
> Are there any interrupts which doesn't affect local_irq_count(cpu) or that
> doesn't enter do_IRQ()? (other than NMIs).
>
> Because I'm implementing my own locking routine and I'm getting
> interrupted during spin, but I check and found that in_interupt() returns
> zero.

All hardware interrupts go through do_IRQ. There are also CPU
exceptions and inter-processor interupts (SMP only) that have individual
handlers.

--

Brian Gerst