diff options
| author | Peter Gonda <[email protected]> | 2022-10-06 00:34:06 +0000 |
|---|---|---|
| committer | Sean Christopherson <[email protected]> | 2022-11-16 16:58:52 -0800 |
| commit | cf4694be2b2cf74945e50d39a02ea2307c4495f4 (patch) | |
| tree | 74389c8ce3d4978a99def91aa5f9a259a61437fb /tools/testing/selftests/kvm/lib/ucall_common.c | |
| parent | dc88244bf5488b04fb7bbe47d8d9c38ff8f7dbb4 (diff) | |
tools: Add atomic_test_and_set_bit()
Add x86 and generic implementations of atomic_test_and_set_bit() to allow
KVM selftests to atomically manage bitmaps.
Note, the generic version is taken from arch_test_and_set_bit() as of
commit 415d83249709 ("locking/atomic: Make test_and_*_bit() ordered on
failure").
Signed-off-by: Peter Gonda <[email protected]>
Co-developed-by: Sean Christopherson <[email protected]>
Signed-off-by: Sean Christopherson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/kvm/lib/ucall_common.c')
0 files changed, 0 insertions, 0 deletions