From: Kumar Gala <galak@kernel.crashing.org>
To: Linux-Kernel List <linux-kernel@vger.kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
linuxppc-dev list <linuxppc-dev@ozlabs.org>
Subject: spin_is_locked() broken for uniprocessor?
Date: Tue, 18 Aug 2009 17:09:56 -0500 [thread overview]
Message-ID: <DE9C9034-D2CE-4D21-93D9-A10FE2580920@kernel.crashing.org> (raw)
I just want to validate that what I'm seeing (for UP, non-debug
features):
spin_is_locked() is defined as:
include/linux/spinlock.h:#define spin_is_locked(lock)
__raw_spin_is_locked(&(lock)->raw_lock)
for UP that should get us:
include/linux/spinlock_up.h:#define __raw_spin_is_locked(lock) ((void)
(lock), 0)
which implies to me that spin_is_locked() will always return false.
Is this expected behavior.
- k
next reply other threads:[~2009-08-18 22:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-18 22:09 Kumar Gala [this message]
2009-08-18 22:24 ` Thomas Gleixner
2009-08-19 9:38 ` David Howells
2009-08-19 9:41 ` Peter Zijlstra
2009-08-27 9:32 ` Benjamin Herrenschmidt
2009-08-19 10:53 ` Alan Cox
2009-08-19 11:16 ` Leon Woestenberg
2009-08-19 11:23 ` Peter Zijlstra
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=DE9C9034-D2CE-4D21-93D9-A10FE2580920@kernel.crashing.org \
--to=galak@kernel.crashing.org \
--cc=benh@kernel.crashing.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=tglx@linutronix.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®