mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
no need for locks in system mode
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@433 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
1a18c71b50
commit
aebcb60e55
1 changed files with 1 additions and 1 deletions
|
@ -384,7 +384,7 @@ typedef int spinlock_t;
|
||||||
|
|
||||||
#define SPIN_LOCK_UNLOCKED 0
|
#define SPIN_LOCK_UNLOCKED 0
|
||||||
|
|
||||||
#if 1
|
#if defined(CONFIG_USER_ONLY)
|
||||||
static inline void spin_lock(spinlock_t *lock)
|
static inline void spin_lock(spinlock_t *lock)
|
||||||
{
|
{
|
||||||
while (testandset(lock));
|
while (testandset(lock));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue