projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
327e8b6
)
arch/tile: revert comment for atomic64_add_unless().
author
Chris Metcalf
<cmetcalf@tilera.com>
Tue, 27 Mar 2012 18:10:03 +0000
(14:10 -0400)
committer
Chris Metcalf
<cmetcalf@tilera.com>
Mon, 2 Apr 2012 16:00:15 +0000
(12:00 -0400)
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>
arch/tile/include/asm/atomic_32.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/tile/include/asm/atomic_32.h
b/arch/tile/include/asm/atomic_32.h
index 466dc4a39a4faf004d7d7dcabd683d6d41044f40..54d1da826f93dfbf167aaa3c219f143783d91902 100644
(file)
--- 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)
{