add missing '!', don't why it was lost when checked in.

This commit is contained in:
David Xu 2002-11-02 10:31:22 +00:00
parent 78d4da2af3
commit 455fc5775f

View File

@ -45,7 +45,7 @@ simplelock_init(struct simplelock *lock)
static inline void
simplelock_lock(struct simplelock *lock)
{
while (atomic_cmpset_int(&lock->s_lock, 0, 1))
while (!atomic_cmpset_int(&lock->s_lock, 0, 1))
;
}