From patchwork Wed Dec 1 19:44:38 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Remove unused spin_trylock() function Date: Wed, 01 Dec 2010 09:44:38 -0000 From: Peter Maydell X-Patchwork-Id: 73897 Message-Id: <1291232678-31556-1-git-send-email-peter.maydell@linaro.org> To: qemu-devel@nongnu.org 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 --- 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