From 3ee1f325b37af6dc19423983b970c9554aa5dddc Mon Sep 17 00:00:00 2001 From: Anton Blanchard Date: Fri, 13 Jan 2006 16:51:52 +1100 Subject: [PATCH] --- yaml --- r: 18327 b: refs/heads/master c: b11fa580ac06b34944a2b46a44ebce2c284e1a76 h: refs/heads/master i: 18325: a4aa0a8dcbd16bea43b2529e6b22054906c8c040 18323: 25376d94a643b19e655334c135e69753eede0cb1 18319: e6a1e3cd5dc5f07c10e0f708d31567897f3d8e02 v: v3 --- [refs] | 2 +- trunk/include/asm-powerpc/atomic.h | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/[refs] b/[refs] index 169571df9663..51e3e220e164 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 144b9c135b963bcb7f242c7b83bff930620d3161 +refs/heads/master: b11fa580ac06b34944a2b46a44ebce2c284e1a76 diff --git a/trunk/include/asm-powerpc/atomic.h b/trunk/include/asm-powerpc/atomic.h index 9ce51ba54c13..147a38dcc766 100644 --- a/trunk/include/asm-powerpc/atomic.h +++ b/trunk/include/asm-powerpc/atomic.h @@ -176,19 +176,19 @@ static __inline__ int atomic_dec_return(atomic_t *v) * Atomically adds @a to @v, so long as it was not @u. * Returns non-zero if @v was not @u, and zero otherwise. */ -#define atomic_add_unless(v, a, u) \ -({ \ - int c, old; \ - c = atomic_read(v); \ - for (;;) { \ - if (unlikely(c == (u))) \ - break; \ - old = atomic_cmpxchg((v), c, c + (a)); \ - if (likely(old == c)) \ - break; \ - c = old; \ - } \ - c != (u); \ +#define atomic_add_unless(v, a, u) \ +({ \ + int c, old; \ + c = atomic_read(v); \ + for (;;) { \ + if (unlikely(c == (u))) \ + break; \ + old = atomic_cmpxchg((v), c, c + (a)); \ + if (likely(old == c)) \ + break; \ + c = old; \ + } \ + c != (u); \ }) #define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)