Re: [rtc-linux] Re: [PATCH] rtc: Make rtc_update_irq callable withirqs enabled

From: Alessandro Zummo
Date: Thu Apr 23 2009 - 15:55:52 EST


On Thu, 23 Apr 2009 12:45:32 -0700
David Brownell <david-b@xxxxxxxxxxx> 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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/