aboutsummaryrefslogtreecommitdiff
path: root/qemu-lock.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2010-12-01 19:44:38 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-12-04 21:21:28 +0000
commit53016fa69c1fc7ed257272f36cb84b6623f73332 (patch)
tree168bedd5cdfd46286f63f63e81d70b073b5a1b08 /qemu-lock.h
parentedcdd562baff02bb8de974c46a2b984b7d5b0da9 (diff)
downloadqemu-53016fa69c1fc7ed257272f36cb84b6623f73332.zip
qemu-53016fa69c1fc7ed257272f36cb84b6623f73332.tar.gz
qemu-53016fa69c1fc7ed257272f36cb84b6623f73332.tar.bz2
Remove unused spin_trylock() function
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> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'qemu-lock.h')
-rw-r--r--qemu-lock.h10
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