public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Question about rtc_lock
@ 2001-10-06  3:49 Thomas Hood
  2001-10-06 13:01 ` Alan Cox
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Hood @ 2001-10-06  3:49 UTC (permalink / raw)
  To: linux-kernel

The file arch/i386/kernel/bootflag.c contains this:

-------------------------------------------------
static void __init sbf_write(u8 v)
{
        if(sbf_port != -1)
        {
                v &= ~(1<<7);
                if(!parity(v))
                        v|=1<<7;

                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 ?

--
Thomas


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-10-07  3:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-06  3:49 Question about rtc_lock Thomas Hood
2001-10-06 13:01 ` Alan Cox
2001-10-06 13:06   ` Thomas Hood
2001-10-06 13:13     ` Alan Cox
2001-10-06 14:40       ` Thomas Hood
2001-10-06 15:24         ` Jonathan Lundell
2001-10-07  3:24           ` Thomas Hood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox