From: bellard Date: Thu, 30 Oct 2003 01:08:17 +0000 (+0000) Subject: no need for locks in system mode X-Git-Tag: release_0_5_1~69 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aebcb60e55587a675aa0a3023e60c827e19f73f2;p=thirdparty%2Fqemu.git no need for locks in system mode git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@433 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/exec-all.h b/exec-all.h index 9994acb7a72..7d0972e862a 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));