diff options
author | 2022-05-18 20:49:53 +0200 | |
---|---|---|
committer | 2022-05-19 23:46:09 +0200 | |
commit | 8491d1bdf5de152f27fc941e2dcdc4e66c950542 (patch) | |
tree | c971126e067abf917f5204a5cd2ce87305240cae /scripts/generate_rust_analyzer.py | |
parent | locking/atomic/x86: Introduce arch_try_cmpxchg64 (diff) | |
download | wireguard-linux-8491d1bdf5de152f27fc941e2dcdc4e66c950542.tar.xz wireguard-linux-8491d1bdf5de152f27fc941e2dcdc4e66c950542.zip |
sched/clock: Use try_cmpxchg64 in sched_clock_{local,remote}
Use try_cmpxchg64 instead of cmpxchg64 (*ptr, old, new) != old in
sched_clock_{local,remote}. x86 cmpxchg returns success in ZF flag,
so this change saves a compare after cmpxchg (and related move
instruction in front of cmpxchg).
Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20220518184953.3446778-1-ubizjak@gmail.com
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions