aboutsummaryrefslogtreecommitdiffstats
path: root/arch/tile
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2012-03-27 14:10:03 -0400
committerChris Metcalf <cmetcalf@tilera.com>2012-04-02 12:00:15 -0400
commit07feea877d18453bbe4ad47fe2a365eebf56a7af (patch)
tree2e95bc9ccfd1754201266ae0e7e19b080191d642 /arch/tile
parent327e8b6b25588ab906856a4e506b28c59422f11b (diff)
downloadkernel_goldelico_gta04-07feea877d18453bbe4ad47fe2a365eebf56a7af.zip
kernel_goldelico_gta04-07feea877d18453bbe4ad47fe2a365eebf56a7af.tar.gz
kernel_goldelico_gta04-07feea877d18453bbe4ad47fe2a365eebf56a7af.tar.bz2
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')
-rw-r--r--arch/tile/include/asm/atomic_32.h2
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 466dc4a..54d1da8 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)
{