aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorUros Bizjak <[email protected]>2022-05-18 20:49:53 +0200
committerPeter Zijlstra <[email protected]>2022-05-19 23:46:09 +0200
commit8491d1bdf5de152f27fc941e2dcdc4e66c950542 (patch)
treec971126e067abf917f5204a5cd2ce87305240cae /lib/mpi/mpi-sub-ui.c
parentc2df0a6af177b6c06a859806a876f92b072dc624 (diff)
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 <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions