diff options
| author | Paul Burton <[email protected]> | 2019-10-01 21:53:30 +0000 |
|---|---|---|
| committer | Paul Burton <[email protected]> | 2019-10-07 16:42:47 +0000 |
| commit | 6bbe043bd3f4766b089b7b51a80e75745868c038 (patch) | |
| tree | 4e2a4c6a1f357f3c92b6f5ed1ad3ee1f925562be /arch/mips/lib/csum_partial.S | |
| parent | MIPS: bitops: ins start position is always an immediate (diff) | |
| download | kernel-6bbe043bd3f4766b089b7b51a80e75745868c038.tar.gz kernel-6bbe043bd3f4766b089b7b51a80e75745868c038.zip | |
MIPS: bitops: Implement test_and_set_bit() in terms of _lock variant
The only difference between test_and_set_bit() & test_and_set_bit_lock()
is memory ordering barrier semantics - the former provides a full
barrier whilst the latter only provides acquire semantics.
We can therefore implement test_and_set_bit() in terms of
test_and_set_bit_lock() with the addition of the extra memory barrier.
Do this in order to avoid duplicating logic.
Signed-off-by: Paul Burton <[email protected]>
Cc: [email protected]
Cc: Huacai Chen <[email protected]>
Cc: Jiaxun Yang <[email protected]>
Cc: [email protected]
Diffstat (limited to 'arch/mips/lib/csum_partial.S')
0 files changed, 0 insertions, 0 deletions
