git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36c7d52
)
PPC spinlocks work again. Sorry, my bad.
author
Anton Blanchard
<anton@samba.org>
Sat, 6 Oct 2001 10:36:15 +0000
(10:36 +0000)
committer
Anton 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
patch
|
blob
|
history
diff --git
a/source3/tdb/spinlock.c
b/source3/tdb/spinlock.c
index d2ed381a17434c011eb62fc8fb519c151757d405..0a68981ca2fe3fe6b7936dfc5a972cddc2245c36 100644
(file)
--- 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)