aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/asm-generic/mutex-dec.h2
-rw-r--r--include/asm-i386/mutex.h2
-rw-r--r--include/asm-x86_64/mutex.h2
3 files changed, 3 insertions, 3 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 }
diff --git a/include/asm-i386/mutex.h b/include/asm-i386/mutex.h
index c657d4b09f0a..9b2199e829f3 100644
--- a/include/asm-i386/mutex.h
+++ b/include/asm-i386/mutex.h
@@ -125,7 +125,7 @@ __mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *))
125 * the mutex state would be. 125 * the mutex state would be.
126 */ 126 */
127#ifdef __HAVE_ARCH_CMPXCHG 127#ifdef __HAVE_ARCH_CMPXCHG
128 if (likely(atomic_cmpxchg(count, 1, 0)) == 1) 128 if (likely(atomic_cmpxchg(count, 1, 0) == 1))
129 return 1; 129 return 1;
130 return 0; 130 return 0;
131#else 131#else
diff --git a/include/asm-x86_64/mutex.h b/include/asm-x86_64/mutex.h
index 818abfd262d1..11fbee2bd6c0 100644
--- a/include/asm-x86_64/mutex.h
+++ b/include/asm-x86_64/mutex.h
@@ -104,7 +104,7 @@ do { \
104static inline int 104static inline int
105__mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *)) 105__mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *))
106{ 106{
107 if (likely(atomic_cmpxchg(count, 1, 0)) == 1) 107 if (likely(atomic_cmpxchg(count, 1, 0) == 1))
108 return 1; 108 return 1;
109 else 109 else
110 return 0; 110 return 0;