atomic: move atomic_add_unless to generic code
[deliverable/linux.git] / arch / x86 / include / asm / atomic64_32.h
index 2a934aa19a4363dce92289390341b4b243ac5167..24098aafce0de97cc64776391eda014945413558 100644 (file)
@@ -263,7 +263,7 @@ static inline int atomic64_add_negative(long long i, atomic64_t *v)
  * @u: ...unless v is equal to u.
  *
  * Atomically adds @a to @v, so long as it was not @u.
- * Returns non-zero if @v was not @u, and zero otherwise.
+ * Returns the old value of @v.
  */
 static inline int atomic64_add_unless(atomic64_t *v, long long a, long long u)
 {
This page took 0.04813 seconds and 5 git commands to generate.