cmpxchg.h 479 B

12345678910111213141516
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_IA64_CMPXCHG_H
  3. #define _ASM_IA64_CMPXCHG_H
  4. #include <uapi/asm/cmpxchg.h>
  5. #define arch_xchg(ptr, x) \
  6. ({(__typeof__(*(ptr))) __xchg((unsigned long) (x), (ptr), sizeof(*(ptr)));})
  7. #define arch_cmpxchg(ptr, o, n) cmpxchg_acq((ptr), (o), (n))
  8. #define arch_cmpxchg64(ptr, o, n) cmpxchg_acq((ptr), (o), (n))
  9. #define arch_cmpxchg_local arch_cmpxchg
  10. #define arch_cmpxchg64_local arch_cmpxchg64
  11. #endif /* _ASM_IA64_CMPXCHG_H */