brintos

brintos / linux-shallow public Read only

0
0
Text · 481 B · ab37a22 Raw
16 lines · c
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 5#include <asm/types.h>6#include <asm/bitsperlong.h>7 8/*9 * Just alias the test versions, all of the compiler built-in atomics "fetch",10 * and optimizing compile-time constants on x86 isn't worth the complexity.11 */12#define set_bit test_and_set_bit13#define clear_bit test_and_clear_bit14 15#endif /* _TOOLS_LINUX_ASM_GENERIC_BITOPS_ATOMIC_H_ */16