From 4842f868b96943d94c762eae4ace337543c0ece4 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 3 Apr 2001 09:20:26 +0000 Subject: [PATCH] fixed the spinlock code for the way it is _supposed_ to be. If it doesn't work, it needs to be fixed elsewhere. (I think) --- comedi/rt_pend_tq/rt_pend_tq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/comedi/rt_pend_tq/rt_pend_tq.c b/comedi/rt_pend_tq/rt_pend_tq.c index df6ebb27..ff08ed76 100644 --- a/comedi/rt_pend_tq/rt_pend_tq.c +++ b/comedi/rt_pend_tq/rt_pend_tq.c @@ -35,18 +35,18 @@ int rt_pend_call(void (*func)(int arg1, void * arg2), int arg1, void * arg2) return -EINVAL; if(rt_pend_tq_irq<=0) return -ENODEV; - comedi_spin_lock_irqsave(rt_pend_tq_lock, flags); + comedi_spin_lock_irqsave(&rt_pend_tq_lock, flags); INC_CIRCULAR_PTR(rt_pend_head,rt_pend_tq,RT_PEND_TQ_SIZE); if(rt_pend_head==rt_pend_tail) { // overflow, we just refuse to take this request DEC_CIRCULAR_PTR(rt_pend_head,rt_pend_tq,RT_PEND_TQ_SIZE); - comedi_spin_unlock_irqrestore(rt_pend_tq_lock, flags); + comedi_spin_unlock_irqrestore(&rt_pend_tq_lock, flags); return -EAGAIN; } rt_pend_head->func=func; rt_pend_head->arg1=arg1; rt_pend_head->arg2=arg2; - comedi_spin_unlock_irqrestore(rt_pend_tq_lock, flags); + comedi_spin_unlock_irqrestore(&rt_pend_tq_lock, flags); #ifdef CONFIG_COMEDI_RTAI rt_pend_linux_srq(rt_pend_tq_irq); #endif -- 2.26.2