atomic.h 481 B

123456789101112131415
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _TOOLS_LINUX_ASM_GENERIC_BITOPS_ATOMIC_H_
  3. #define _TOOLS_LINUX_ASM_GENERIC_BITOPS_ATOMIC_H_
  4. #include <asm/types.h>
  5. #include <asm/bitsperlong.h>
  6. /*
  7. * Just alias the test versions, all of the compiler built-in atomics "fetch",
  8. * and optimizing compile-time constants on x86 isn't worth the complexity.
  9. */
  10. #define set_bit test_and_set_bit
  11. #define clear_bit test_and_clear_bit
  12. #endif /* _TOOLS_LINUX_ASM_GENERIC_BITOPS_ATOMIC_H_ */