public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Disabling an interrupt in interrupt context
@ 2009-02-24  0:11 Mike Mason
  2009-02-25  0:09 ` Robert Hancock
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Mason @ 2009-02-24  0:11 UTC (permalink / raw)
  To: linux-kernel

I have a need to disable an LSI interrupt from within the context of the handler for that interrupt.  It appears that disable_irq_nosync() will do the trick.  Besides dropping interrupts, which I don't care about because the device is in an error state, what are the potential side effects of doing this?  As far as I can tell, this will not prevent the current in-flight handlers for that interrupt from finishing.

Thanks,
Mike Mason


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Disabling an interrupt in interrupt context
  2009-02-24  0:11 Disabling an interrupt in interrupt context Mike Mason
@ 2009-02-25  0:09 ` Robert Hancock
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Hancock @ 2009-02-25  0:09 UTC (permalink / raw)
  To: Mike Mason; +Cc: linux-kernel

Mike Mason wrote:
> I have a need to disable an LSI interrupt from within the context of the 
> handler for that interrupt.  It appears that disable_irq_nosync() will 
> do the trick.  Besides dropping interrupts, which I don't care about 
> because the device is in an error state, what are the potential side 
> effects of doing this?  As far as I can tell, this will not prevent the 
> current in-flight handlers for that interrupt from finishing.

Well, if any other devices are sharing that IRQ line, they likely won't 
like it, for one thing.. How long are you planning on disabling the IRQ 
line for?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-25  0:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-24  0:11 Disabling an interrupt in interrupt context Mike Mason
2009-02-25  0:09 ` Robert Hancock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox