aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/lib/atomic32.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2011-07-27 15:49:44 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-07-27 15:53:36 -0400
commit678624e401b0b7747762b5223fb23f86dcdacc93 (patch)
treef3a413887b7ac98c66aa6e77fd6b187ec2c249cb /arch/sparc/lib/atomic32.c
parent09570f914914d2beb0db29c5a9c7344934f2fa8c (diff)
sparc: rename atomic_add_unless
Should have been done in commit 1af08a1407f4 ("This is in preparation for more generic atomic"). Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Arun Sharma <asharma@fb.com> Cc: David Miller <davem@davemloft.net> Cc: "Hans-Christian Egtvedt" <hans-christian.egtvedt@atmel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/sparc/lib/atomic32.c')
-rw-r--r--arch/sparc/lib/atomic32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/lib/atomic32.c b/arch/sparc/lib/atomic32.c
index 1a371f8ae0b0..8600eb2461b5 100644
--- a/arch/sparc/lib/atomic32.c
+++ b/arch/sparc/lib/atomic32.c
@@ -55,7 +55,7 @@ int atomic_cmpxchg(atomic_t *v, int old, int new)
55} 55}
56EXPORT_SYMBOL(atomic_cmpxchg); 56EXPORT_SYMBOL(atomic_cmpxchg);
57 57
58int atomic_add_unless(atomic_t *v, int a, int u) 58int __atomic_add_unless(atomic_t *v, int a, int u)
59{ 59{
60 int ret; 60 int ret;
61 unsigned long flags; 61 unsigned long flags;
@@ -67,7 +67,7 @@ int atomic_add_unless(atomic_t *v, int a, int u)
67 spin_unlock_irqrestore(ATOMIC_HASH(v), flags); 67 spin_unlock_irqrestore(ATOMIC_HASH(v), flags);
68 return ret != u; 68 return ret != u;
69} 69}
70EXPORT_SYMBOL(atomic_add_unless); 70EXPORT_SYMBOL(__atomic_add_unless);
71 71
72/* Atomic operations are already serializing */ 72/* Atomic operations are already serializing */
73void atomic_set(atomic_t *v, int i) 73void atomic_set(atomic_t *v, int i)