Messages in this thread | | | Date | Thu, 23 Apr 2009 21:55:38 +0200 | From | Alessandro Zummo <> | Subject | Re: [rtc-linux] Re: [PATCH] rtc: Make rtc_update_irq callable with irqs enabled |
| |
On Thu, 23 Apr 2009 12:45:32 -0700 David Brownell <david-b@pacbell.net> wrote:
> If the spinlock is *ever* acquired with IRQs disabled, > it must *always* be acquired that way. > > The typical use is ... from IRQ context, which will in > some cases mean IRQs disabled. QED.
the spinlock could be acquired with IRQs disabled, with spin_lock_irq, in the alarm setup functions and acquired with the standard spinlock calls in the irq handler.
would it work?
--
Best regards,
Alessandro Zummo, Tower Technologies - Torino, Italy
http://www.towertech.it
| |