Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17874
b: refs/heads/master
c: 4cec873
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Jan 11, 2006
1 parent 454b31a commit f89ad85
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7e4e574c391cdeef516411eb698ac6955f01d673
refs/heads/master: 4cec87361462d570d6a67888feda41e77e0a9562
2 changes: 1 addition & 1 deletion trunk/include/asm-generic/mutex-dec.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ __mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *))
* the mutex state would be.
*/
#ifdef __HAVE_ARCH_CMPXCHG
if (likely(atomic_cmpxchg(count, 1, 0)) == 1) {
if (likely(atomic_cmpxchg(count, 1, 0) == 1)) {
smp_mb();
return 1;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-i386/mutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ __mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *))
* the mutex state would be.
*/
#ifdef __HAVE_ARCH_CMPXCHG
if (likely(atomic_cmpxchg(count, 1, 0)) == 1)
if (likely(atomic_cmpxchg(count, 1, 0) == 1))
return 1;
return 0;
#else
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-x86_64/mutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ do { \
static inline int
__mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *))
{
if (likely(atomic_cmpxchg(count, 1, 0)) == 1)
if (likely(atomic_cmpxchg(count, 1, 0) == 1))
return 1;
else
return 0;
Expand Down

0 comments on commit f89ad85

Please sign in to comment.