Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arch/tile: revert comment for atomic64_add_unless().

It still returns whether @v was not @u, not the old value,
unlike __atomic_add_unless().

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Acked-by: Arun Sharma <asharma@fb.com>

+1 -1
+1 -1
arch/tile/include/asm/atomic_32.h
··· 200 200 * @u: ...unless v is equal to u. 201 201 * 202 202 * Atomically adds @a to @v, so long as @v was not already @u. 203 - * Returns the old value of @v. 203 + * Returns non-zero if @v was not @u, and zero otherwise. 204 204 */ 205 205 static inline u64 atomic64_add_unless(atomic64_t *v, u64 a, u64 u) 206 206 {