diff options
| author | Paul Burton <[email protected]> | 2019-10-01 21:53:30 +0000 |
|---|---|---|
| committer | Paul Burton <[email protected]> | 2019-10-07 09:42:47 -0700 |
| commit | 6bbe043bd3f4766b089b7b51a80e75745868c038 (patch) | |
| tree | 4e2a4c6a1f357f3c92b6f5ed1ad3ee1f925562be /tools/perf/scripts/python/stackcollapse.py | |
| parent | 27aab27259aec1f200cf1f84f02b8192d27abe64 (diff) | |
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 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions