Loading include/asm-generic/mutex-dec.h +1 −1 Original line number Diff line number Diff line Loading @@ -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; } Loading include/asm-i386/mutex.h +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading include/asm-x86_64/mutex.h +1 −1 Original line number Diff line number Diff line Loading @@ -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; Loading Loading
include/asm-generic/mutex-dec.h +1 −1 Original line number Diff line number Diff line Loading @@ -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; } Loading
include/asm-i386/mutex.h +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
include/asm-x86_64/mutex.h +1 −1 Original line number Diff line number Diff line Loading @@ -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; Loading