diff options
Diffstat (limited to 'arch/x86/include/asm/atomic64_64.h')
-rw-r--r-- | arch/x86/include/asm/atomic64_64.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/include/asm/atomic64_64.h b/arch/x86/include/asm/atomic64_64.h index 037351022f54..4f881d7f0c39 100644 --- a/arch/x86/include/asm/atomic64_64.h +++ b/arch/x86/include/asm/atomic64_64.h | |||
@@ -70,7 +70,7 @@ static inline void atomic64_sub(long i, atomic64_t *v) | |||
70 | * true if the result is zero, or false for all | 70 | * true if the result is zero, or false for all |
71 | * other cases. | 71 | * other cases. |
72 | */ | 72 | */ |
73 | static inline int atomic64_sub_and_test(long i, atomic64_t *v) | 73 | static inline bool atomic64_sub_and_test(long i, atomic64_t *v) |
74 | { | 74 | { |
75 | GEN_BINARY_RMWcc(LOCK_PREFIX "subq", v->counter, "er", i, "%0", "e"); | 75 | GEN_BINARY_RMWcc(LOCK_PREFIX "subq", v->counter, "er", i, "%0", "e"); |
76 | } | 76 | } |
@@ -109,7 +109,7 @@ static __always_inline void atomic64_dec(atomic64_t *v) | |||
109 | * returns true if the result is 0, or false for all other | 109 | * returns true if the result is 0, or false for all other |
110 | * cases. | 110 | * cases. |
111 | */ | 111 | */ |
112 | static inline int atomic64_dec_and_test(atomic64_t *v) | 112 | static inline bool atomic64_dec_and_test(atomic64_t *v) |
113 | { | 113 | { |
114 | GEN_UNARY_RMWcc(LOCK_PREFIX "decq", v->counter, "%0", "e"); | 114 | GEN_UNARY_RMWcc(LOCK_PREFIX "decq", v->counter, "%0", "e"); |
115 | } | 115 | } |
@@ -122,7 +122,7 @@ static inline int atomic64_dec_and_test(atomic64_t *v) | |||
122 | * and returns true if the result is zero, or false for all | 122 | * and returns true if the result is zero, or false for all |
123 | * other cases. | 123 | * other cases. |
124 | */ | 124 | */ |
125 | static inline int atomic64_inc_and_test(atomic64_t *v) | 125 | static inline bool atomic64_inc_and_test(atomic64_t *v) |
126 | { | 126 | { |
127 | GEN_UNARY_RMWcc(LOCK_PREFIX "incq", v->counter, "%0", "e"); | 127 | GEN_UNARY_RMWcc(LOCK_PREFIX "incq", v->counter, "%0", "e"); |
128 | } | 128 | } |
@@ -136,7 +136,7 @@ static inline int atomic64_inc_and_test(atomic64_t *v) | |||
136 | * if the result is negative, or false when | 136 | * if the result is negative, or false when |
137 | * result is greater than or equal to zero. | 137 | * result is greater than or equal to zero. |
138 | */ | 138 | */ |
139 | static inline int atomic64_add_negative(long i, atomic64_t *v) | 139 | static inline bool atomic64_add_negative(long i, atomic64_t *v) |
140 | { | 140 | { |
141 | GEN_BINARY_RMWcc(LOCK_PREFIX "addq", v->counter, "er", i, "%0", "s"); | 141 | GEN_BINARY_RMWcc(LOCK_PREFIX "addq", v->counter, "er", i, "%0", "s"); |
142 | } | 142 | } |
@@ -180,7 +180,7 @@ static inline long atomic64_xchg(atomic64_t *v, long new) | |||
180 | * Atomically adds @a to @v, so long as it was not @u. | 180 | * Atomically adds @a to @v, so long as it was not @u. |
181 | * Returns the old value of @v. | 181 | * Returns the old value of @v. |
182 | */ | 182 | */ |
183 | static inline int atomic64_add_unless(atomic64_t *v, long a, long u) | 183 | static inline bool atomic64_add_unless(atomic64_t *v, long a, long u) |
184 | { | 184 | { |
185 | long c, old; | 185 | long c, old; |
186 | c = atomic64_read(v); | 186 | c = atomic64_read(v); |