From: Thomas Hood <jdthood@mail.com>
To: linux-kernel@vger.kernel.org
Subject: Question about rtc_lock
Date: 05 Oct 2001 23:49:54 -0400 [thread overview]
Message-ID: <1002340196.813.64.camel@thanatos> (raw)
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
next reply other threads:[~2001-10-06 3:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-06 3:49 Thomas Hood [this message]
2001-10-06 13:01 ` Question about rtc_lock 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1002340196.813.64.camel@thanatos \
--to=jdthood@mail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.