From 032f65d5ff7de0a895e8915ea669bdbe07b9ae52 Mon Sep 17 00:00:00 2001 From: Anton Blanchard Date: Sat, 6 Oct 2001 10:36:15 +0000 Subject: PPC spinlocks work again. Sorry, my bad. (This used to be commit 6612abf8270c9c697fdb528aba3af07ea5be7f33) --- source3/tdb/spinlock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/tdb/spinlock.c b/source3/tdb/spinlock.c index d2ed381a17..0a68981ca2 100644 --- a/source3/tdb/spinlock.c +++ b/source3/tdb/spinlock.c @@ -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) -- cgit