Commit d04b0ddc authored by KaiGai Kohei's avatar KaiGai Kohei Committed by Linus Torvalds

[PATCH] atomic_inc_return() for sparc64

This patch declares atomic_add_return() as an alias of __atomic_add().
atomic64_add_return(),atomic_sub_return() and atomic64_sub_return() are
same.
Signed-off-by: default avatarKaiGai, Kohei <kaigai@ak.jp.nec.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b7d317f5
......@@ -40,6 +40,12 @@ extern int __atomic64_sub(__s64, atomic64_t *);
#define atomic_inc_return(v) __atomic_add(1, v)
#define atomic64_inc_return(v) __atomic64_add(1, v)
#define atomic_sub_return(i, v) __atomic_sub(i, v)
#define atomic64_sub_return(i, v) __atomic64_sub(i, v)
#define atomic_add_return(i, v) __atomic_add(i, v)
#define atomic64_add_return(i, v) __atomic64_add(i, v)
/*
* atomic_inc_and_test - increment and test
* @v: pointer of type atomic_t
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment