diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-03-26 15:40:02 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-03-28 11:02:38 +0300 |
commit | 5b6957eed75ca7842861e0f6765d0f6a64408e05 (patch) | |
tree | 6ac41dea78cdd7db7c4006c052bcf069b1dc1814 /lib/sbi/riscv_atomic.c | |
parent | 7b211ff92482379aa34c0a217e2aeded5713b2d5 (diff) | |
download | opensbi-5b6957eed75ca7842861e0f6765d0f6a64408e05.tar.xz |
include: Use more consistent name for atomic xchg() and cmpxchg()
We should remove the "arch_" prefix from atomic xchg() and cmpxchg()
function names to have consistent naming of all atomic functions.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'lib/sbi/riscv_atomic.c')
-rw-r--r-- | lib/sbi/riscv_atomic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sbi/riscv_atomic.c b/lib/sbi/riscv_atomic.c index fcf3ed1..558bca8 100644 --- a/lib/sbi/riscv_atomic.c +++ b/lib/sbi/riscv_atomic.c @@ -167,7 +167,7 @@ long atomic_sub_return(atomic_t *atom, long value) __cmpxchg((ptr), _o_, _n_, sizeof(*(ptr))); \ }) -long arch_atomic_cmpxchg(atomic_t *atom, long oldval, long newval) +long atomic_cmpxchg(atomic_t *atom, long oldval, long newval) { #ifdef __riscv_atomic return __sync_val_compare_and_swap(&atom->counter, oldval, newval); @@ -176,7 +176,7 @@ long arch_atomic_cmpxchg(atomic_t *atom, long oldval, long newval) #endif } -long arch_atomic_xchg(atomic_t *atom, long newval) +long atomic_xchg(atomic_t *atom, long newval) { /* Atomically set new value and return old value. */ #ifdef __riscv_atomic |