162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#ifndef _TOOLS_LINUX_ASM_GENERIC_BITOPS_ATOMIC_H_ 362306a36Sopenharmony_ci#define _TOOLS_LINUX_ASM_GENERIC_BITOPS_ATOMIC_H_ 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#include <asm/types.h> 662306a36Sopenharmony_ci#include <asm/bitsperlong.h> 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci/* 962306a36Sopenharmony_ci * Just alias the test versions, all of the compiler built-in atomics "fetch", 1062306a36Sopenharmony_ci * and optimizing compile-time constants on x86 isn't worth the complexity. 1162306a36Sopenharmony_ci */ 1262306a36Sopenharmony_ci#define set_bit test_and_set_bit 1362306a36Sopenharmony_ci#define clear_bit test_and_clear_bit 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ci#endif /* _TOOLS_LINUX_ASM_GENERIC_BITOPS_ATOMIC_H_ */ 16