diff options
| author | Anup Patel <[email protected]> | 2020-03-26 18:10:02 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2020-03-28 13:32:38 +0530 |
| commit | 5b6957eed75ca7842861e0f6765d0f6a64408e05 (patch) | |
| tree | 6ac41dea78cdd7db7c4006c052bcf069b1dc1814 /include/sbi | |
| parent | 7b211ff92482379aa34c0a217e2aeded5713b2d5 (diff) | |
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 <[email protected]>
Reviewed-by: Atish Patra <[email protected]>
Diffstat (limited to 'include/sbi')
| -rw-r--r-- | include/sbi/riscv_atomic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sbi/riscv_atomic.h b/include/sbi/riscv_atomic.h index 8543f4d1..3972e0b7 100644 --- a/include/sbi/riscv_atomic.h +++ b/include/sbi/riscv_atomic.h @@ -29,9 +29,9 @@ long atomic_add_return(atomic_t *atom, long value); long atomic_sub_return(atomic_t *atom, long value); -long arch_atomic_cmpxchg(atomic_t *atom, long oldval, long newval); +long atomic_cmpxchg(atomic_t *atom, long oldval, long newval); -long arch_atomic_xchg(atomic_t *atom, long newval); +long atomic_xchg(atomic_t *atom, long newval); unsigned int atomic_raw_xchg_uint(volatile unsigned int *ptr, unsigned int newval); |
