Re: Question about spinlocks in comedi interrupt routines

On Tuesday 18 January 2005 11:52 am, Ian Abbott wrote:
> Hi,
>
> I need to use a spinlock in an interrupt routine set up using the
> 'comedi_request_irq' function.  Outside the interrupt routine context, I
> use 'comedi_spin_lock_irqsave' to acquire the spinlock.  Do I need to
> use that function inside the interrupt routine, or can I just use the
> regular 'spin_lock' function instead?  I guess what I'm really looking
> for is a 'comedi_spin_lock' function!

Just use the save/restore version everywhere.  

-- 
Frank

Received on 2005-01-19Z02:42:00