Re: Question about rtc_lock

From: Thomas Hood (jdthood@mail.com)
Date: Sat Oct 06 2001 - 08:06:24 EST


On Sat, 2001-10-06 at 09:01, Alan Cox wrote:
> > spin_lock(&rtc_lock);
> > CMOS_WRITE(v, sbf_port);
> > spin_unlock(&rtc_lock);
> >
> > Does this code run with irqs disabled, or should these
> > spinlocks be _irq ?
>
> The CMOS isnt accessed from IRQ handlers

No, but what if the rtc interrupts while the lock is held in this
bit of code?

Thomas

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



This archive was generated by hypermail 2b29 : Sun Oct 07 2001 - 21:00:41 EST