Re: [PATCHv2 11/16] atomics/riscv: define atomic64_fetch_add_unless()

2018-06-04 Thread Palmer Dabbelt
On Tue, 29 May 2018 08:43:41 PDT (-0700), mark.rutl...@arm.com wrote: As a step towards unifying the atomic/atomic64/atomic_long APIs, this patch converts the arch/riscv implementation of atomic64_add_unless() into an implementation of atomic64_fetch_add_unless(). A wrapper in will build atomic

[PATCHv2 11/16] atomics/riscv: define atomic64_fetch_add_unless()

2018-05-29 Thread Mark Rutland
As a step towards unifying the atomic/atomic64/atomic_long APIs, this patch converts the arch/riscv implementation of atomic64_add_unless() into an implementation of atomic64_fetch_add_unless(). A wrapper in will build atomic_add_unless() atop of this, provided it is given a preprocessor definiti