PPC spinlocks work again. Sorry, my bad.
authorAnton Blanchard <anton@samba.org>
Sat, 6 Oct 2001 10:36:15 +0000 (10:36 +0000)
committerAnton Blanchard <anton@samba.org>
Sat, 6 Oct 2001 10:36:15 +0000 (10:36 +0000)
(This used to be commit 6612abf8270c9c697fdb528aba3af07ea5be7f33)

source3/tdb/spinlock.c

index d2ed381a17434c011eb62fc8fb519c151757d405..0a68981ca2fe3fe6b7936dfc5a972cddc2245c36 100644 (file)
@@ -94,7 +94,7 @@ static inline int __spin_trylock(spinlock_t *lock)
        : "r"(lock)
        : "cr0", "memory");
 
-       return (result == 0) ? 0 : EBUSY;
+       return (result == 1) ? 0 : EBUSY;
 }
 
 static inline void __spin_unlock(spinlock_t *lock)