From: Blue Swirl <blauwirbel@gmail.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Remove unused spin_trylock() function
Date: Sun, 5 Dec 2010 08:23:07 +0000 [thread overview]
Message-ID: <AANLkTinFEyUtzzk++dJQqCmx+aBSNw=LUV7SFyBBDj+7@mail.gmail.com> (raw)
In-Reply-To: <1291232678-31556-1-git-send-email-peter.maydell@linaro.org>
Thanks, applied.
On Wed, Dec 1, 2010 at 7:44 PM, Peter Maydell <peter.maydell@linaro.org> wrote:
> 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
>
>
>
prev parent reply other threads:[~2010-12-05 8:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-01 19:44 [Qemu-devel] [PATCH] Remove unused spin_trylock() function Peter Maydell
2010-12-05 8:23 ` Blue Swirl [this message]
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='AANLkTinFEyUtzzk++dJQqCmx+aBSNw=LUV7SFyBBDj+7@mail.gmail.com' \
--to=blauwirbel@gmail.com \
--cc=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).