summaryrefslogtreecommitdiff
path: root/exec-all.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-10-30 01:08:17 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-10-30 01:08:17 +0000
commitaebcb60e55587a675aa0a3023e60c827e19f73f2 (patch)
tree6917509a4569f5a3910a1521711c05273529b518 /exec-all.h
parent1a18c71b5037cff63a3e2c99debfcca0c6f7d09a (diff)
downloadqemu-aebcb60e55587a675aa0a3023e60c827e19f73f2.tar.gz
no need for locks in system mode
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@433 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'exec-all.h')
-rw-r--r--exec-all.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec-all.h b/exec-all.h
index 9994acb7a7..7d0972e862 100644
--- a/exec-all.h
+++ b/exec-all.h
@@ -384,7 +384,7 @@ typedef int spinlock_t;
#define SPIN_LOCK_UNLOCKED 0
-#if 1
+#if defined(CONFIG_USER_ONLY)
static inline void spin_lock(spinlock_t *lock)
{
while (testandset(lock));