lkml.org 
[lkml]   [2001]   [Oct]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectQuestion about rtc_lock
From
Date
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

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:17    [W:0.405 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site