]> Git Repo - qemu.git/commitdiff
no need for locks in system mode
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 30 Oct 2003 01:08:17 +0000 (01:08 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 30 Oct 2003 01:08:17 +0000 (01:08 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@433 c046a42c-6fe2-441c-8c8c-71466251a162

exec-all.h

index 9994acb7a721025e814184c976fb4e9cc94e0a45..7d0972e862a59fe9e74b6e9053d1d653db8de568 100644 (file)
@@ -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));
This page took 0.026489 seconds and 4 git commands to generate.