提交 aebcb60e 编写于 作者: B bellard

no need for locks in system mode


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@433 c046a42c-6fe2-441c-8c8c-71466251a162
上级 1a18c71b
...@@ -384,7 +384,7 @@ typedef int spinlock_t; ...@@ -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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册