aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-generic
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/mutex-dec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-generic/mutex-dec.h b/include/asm-generic/mutex-dec.h
index 74b18cda169f..40c6d1f86598 100644
--- a/include/asm-generic/mutex-dec.h
+++ b/include/asm-generic/mutex-dec.h
@@ -97,7 +97,7 @@ __mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *))
97 * the mutex state would be. 97 * the mutex state would be.
98 */ 98 */
99#ifdef __HAVE_ARCH_CMPXCHG 99#ifdef __HAVE_ARCH_CMPXCHG
100 if (likely(atomic_cmpxchg(count, 1, 0)) == 1) { 100 if (likely(atomic_cmpxchg(count, 1, 0) == 1)) {
101 smp_mb(); 101 smp_mb();
102 return 1; 102 return 1;
103 } 103 }