Commit aebcb60e55587a675aa0a3023e60c827e19f73f2

Authored by bellard
1 parent 1a18c71b

no need for locks in system mode


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@433 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
exec-all.h
... ... @@ -384,7 +384,7 @@ typedef int spinlock_t;
384 384  
385 385 #define SPIN_LOCK_UNLOCKED 0
386 386  
387   -#if 1
  387 +#if defined(CONFIG_USER_ONLY)
388 388 static inline void spin_lock(spinlock_t *lock)
389 389 {
390 390 while (testandset(lock));
... ...