From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] Remove unused spin_trylock() function
Date: Wed, 1 Dec 2010 19:44:38 +0000 [thread overview]
Message-ID: <1291232678-31556-1-git-send-email-peter.maydell@linaro.org> (raw)
Remove the spin_trylock() function, as it is not used anywhere,
and is not even implemented if CONFIG_USE_NPTL is defined.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
qemu-lock.h | 10 ----------
1 files changed, 0 insertions(+), 10 deletions(-)
diff --git a/qemu-lock.h b/qemu-lock.h
index 9a3e6ac..65ca084 100644
--- a/qemu-lock.h
+++ b/qemu-lock.h
@@ -224,11 +224,6 @@ static inline void spin_unlock(spinlock_t *lock)
{
resetlock(lock);
}
-
-static inline int spin_trylock(spinlock_t *lock)
-{
- return !testandset(lock);
-}
#else
static inline void spin_lock(spinlock_t *lock)
{
@@ -237,11 +232,6 @@ static inline void spin_lock(spinlock_t *lock)
static inline void spin_unlock(spinlock_t *lock)
{
}
-
-static inline int spin_trylock(spinlock_t *lock)
-{
- return 1;
-}
#endif
#endif
--
1.7.1
next reply other threads:[~2010-12-01 19:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-01 19:44 Peter Maydell [this message]
2010-12-05 8:23 ` [Qemu-devel] [PATCH] Remove unused spin_trylock() function Blue Swirl
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=1291232678-31556-1-git-send-email-peter.maydell@linaro.org \
--to=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).