Skip to content

Commit

Permalink
arch/tile: revert comment for atomic64_add_unless().
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chris Metcalf committed Apr 2, 2012
1 parent 327e8b6 commit 07feea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/tile/include/asm/atomic_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 07feea8

Please sign in to comment.