OSDN Git Service

riscv, atomic: Add #define's for the atomic_{cmp,}xchg_*() variants
authorAndrea Parri <andrea.parri@amarulasolutions.com>
Sat, 1 Dec 2018 00:01:56 +0000 (01:01 +0100)
committerPalmer Dabbelt <palmer@sifive.com>
Fri, 21 Dec 2018 16:10:30 +0000 (08:10 -0800)
commit8b699616f399b58071cda41e5a1125d8480ac982
tree62b8a192e1b36974871485d85827bce00ee058b3
parent7566ec393f4161572ba6f11ad5171fd5d59b0fbd
riscv, atomic: Add #define's for the atomic_{cmp,}xchg_*() variants

If an architecture does not define the atomic_{cmp,}xchg_*() variants,
the generic implementation defaults them to the fully-ordered version.

riscv's had its own variants since "the beginning", but it never told
(#define-d these for) the generic implementation: it is time to do so.

Signed-off-by: Andrea Parri <andrea.parri@amarulasolutions.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/include/asm/atomic.h