diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2012-03-27 14:10:03 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2012-04-02 12:00:15 -0400 |
commit | 07feea877d18453bbe4ad47fe2a365eebf56a7af (patch) | |
tree | 2e95bc9ccfd1754201266ae0e7e19b080191d642 /arch/tile/include/asm/atomic_32.h | |
parent | 327e8b6b25588ab906856a4e506b28c59422f11b (diff) | |
download | blackbird-op-linux-07feea877d18453bbe4ad47fe2a365eebf56a7af.tar.gz blackbird-op-linux-07feea877d18453bbe4ad47fe2a365eebf56a7af.zip |
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>
Diffstat (limited to 'arch/tile/include/asm/atomic_32.h')
-rw-r--r-- | arch/tile/include/asm/atomic_32.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/tile/include/asm/atomic_32.h b/arch/tile/include/asm/atomic_32.h index 466dc4a39a4f..54d1da826f93 100644 --- a/arch/tile/include/asm/atomic_32.h +++ b/arch/tile/include/asm/atomic_32.h @@ -200,7 +200,7 @@ static inline u64 atomic64_add_return(u64 i, atomic64_t *v) * @u: ...unless v is equal to u. * * Atomically adds @a to @v, so long as @v was not already @u. - * Returns the old value of @v. + * Returns non-zero if @v was not @u, and zero otherwise. */ static inline u64 atomic64_add_unless(atomic64_t *v, u64 a, u64 u) { |