[5/5] atomic_inc_return-linux-2.6.9-rc1.sparc64.patch
This patch declares atomic_add_return() as an alias of __atomic_add().
atomic64_add_return(),atomic_sub_return() and atomic64_sub_return() are same.
This patch has not been tested, since we don't have SPARC64 machine.
I want to let this reviewed by SPARC64 specialists.
Signed-off-by: KaiGai, Kohei <[email protected]>
--------
Kai Gai <[email protected]>
diff -rNU4 linux-2.6.9-rc1/include/asm-sparc64/atomic.h linux-2.6.9-rc1.atomic_inc_return/include/asm-sparc64/atomic.h
--- linux-2.6.9-rc1/include/asm-sparc64/atomic.h 2004-08-24 16:03:32.000000000 +0900
+++ linux-2.6.9-rc1.atomic_inc_return/include/asm-sparc64/atomic.h 2004-09-10 10:13:25.000000000 +0900
@@ -39,8 +39,14 @@
#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
*
On Fri, 10 Sep 2004 12:32:06 +0900 (JST)
[email protected] (Kaigai Kohei) wrote:
>
> [5/5] atomic_inc_return-linux-2.6.9-rc1.sparc64.patch
> This patch declares atomic_add_return() as an alias of __atomic_add().
> atomic64_add_return(),atomic_sub_return() and atomic64_sub_return() are same.
> This patch has not been tested, since we don't have SPARC64 machine.
> I want to let this reviewed by SPARC64 specialists.
>
> Signed-off-by: KaiGai, Kohei <[email protected]>
This looks fine to me.