lkml.org 
[lkml]   [2011]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 3/3] atomic: generalize atomic_add_unless_return
From
Date
Le lundi 06 juin 2011 à 10:27 -0700, Arun Sharma a écrit :
> commit 686a7e3 added atomic_add_unless_return() to get something going
> for the stable branch.
>
> Move the primitive to <linux/atomic.h>
>
> Signed-off-by: Arun Sharma <asharma@fb.com>
> Cc: Ingo Molnar <mingo@elte.hu>
> Cc: David Miller <davem@davemloft.net>
> Cc: Andrew Morton <akpm@osdl.org>
> Cc: Eric Dumazet <eric.dumazet@gmail.com>
> Cc: Mike Frysinger <vapier.adi@gmail.com>
> LKML-Reference: <20110531105019.GF24172@elte.hu>
> ---
> include/linux/atomic.h | 15 +++++++++++++++
> net/ipv4/inetpeer.c | 17 ++---------------
> 2 files changed, 17 insertions(+), 15 deletions(-)
>
> diff --git a/include/linux/atomic.h b/include/linux/atomic.h
> index fc31190..3489d9c 100644
> --- a/include/linux/atomic.h
> +++ b/include/linux/atomic.h
> @@ -17,6 +17,21 @@ static inline int atomic_add_unless(atomic_t *v, int a, int u)
> }

Reviewed-by: Eric Dumazet <eric.dumazet@gmail.com>


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2011-06-06 23:01    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site