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

This commit is contained in:
davidxu 2002-11-02 10:31:22 +00:00
parent 53bdb71e06
commit 45330340f4

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))
;
}