On Thu, 20 Nov 2008 17:21:38 +0100, Alessandro Zummo <alessandro.zummo@xxxxxxxxxxxx> wrote: > > It is used to protect sysfs nvram access from rtc ops. > > > > Hm, can I use rtc->ops_lock in sysfs read/write routine to achieve it? > > it should be doable, rtc-ds1305 uses it But ops_lock is mutex, so it cannot protect from an interrupt handler. I will try rtc->irq_lock. --- Atsushi Nemoto