OpenCloudOS-Kernel/tools/include/asm-generic/bitops
Sean Christopherson bb056c0f08 tools: KVM: selftests: Convert clear/set_bit() to actual atomics
Convert {clear,set}_bit() to atomics as KVM's ucall implementation relies
on clear_bit() being atomic, they are defined in atomic.h, and the same
helpers in the kernel proper are atomic.

KVM's ucall infrastructure is the only user of clear_bit() in tools/, and
there are no true set_bit() users.  tools/testing/nvdimm/ does make heavy
use of set_bit(), but that code builds into a kernel module of sorts, i.e.
pulls in all of the kernel's header and so is already getting the kernel's
atomic set_bit().

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20221119013450.2643007-10-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-12-02 13:22:35 -05:00
..
__ffs.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
__ffz.h tools lib: Add for_each_clear_bit macro 2016-10-24 11:07:33 -03:00
__fls.h tools/headers: Synchronize kernel ABI headers 2017-11-04 09:27:46 +01:00
arch_hweight.h tools/headers: Synchronize kernel ABI headers 2017-11-04 09:27:46 +01:00
atomic.h tools: KVM: selftests: Convert clear/set_bit() to actual atomics 2022-12-02 13:22:35 -05:00
const_hweight.h tools/headers: Synchronize kernel ABI headers 2017-11-04 09:27:46 +01:00
fls.h fls: change parameter to unsigned int 2019-01-04 13:13:46 -08:00
fls64.h tools/headers: Synchronize kernel ABI headers 2017-11-04 09:27:46 +01:00
hweight.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
non-atomic.h bitops: wrap non-atomic bitops with a transparent macro 2022-06-30 19:52:41 -07:00