Skip to content
Unverified Commit 8b699616 authored by Andrea Parri's avatar Andrea Parri Committed by Palmer Dabbelt
Browse files

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: default avatarAndrea Parri <andrea.parri@amarulasolutions.com>
Acked-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
parent 7566ec39
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment