Re: [U-Boot] [PATCH v3 01/10] arm: add atomic functions with return support

2016-10-27 Thread Antoine Tenart
HI Mark, On Wed, Oct 26, 2016 at 04:14:31PM +0100, Mark Rutland wrote: > On Wed, Oct 26, 2016 at 02:10:24PM +0200, Antoine Tenart wrote: > > Implement three atomic functions to allow making an atomic operation > > that returns the value. Adds: atomic_add_return(), atomic_sub_return(), > >

Re: [U-Boot] [PATCH v3 01/10] arm: add atomic functions with return support

2016-10-26 Thread Mark Rutland
Hi, On Wed, Oct 26, 2016 at 02:10:24PM +0200, Antoine Tenart wrote: > Implement three atomic functions to allow making an atomic operation > that returns the value. Adds: atomic_add_return(), atomic_sub_return(), > atomic_inc_return() and atomic_dec_return(). > > Signed-off-by: Antoine Tenart

[U-Boot] [PATCH v3 01/10] arm: add atomic functions with return support

2016-10-26 Thread Antoine Tenart
Implement three atomic functions to allow making an atomic operation that returns the value. Adds: atomic_add_return(), atomic_sub_return(), atomic_inc_return() and atomic_dec_return(). Signed-off-by: Antoine Tenart --- arch/arm/include/asm/atomic.h | 34