diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2024-04-11 21:22:55 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2024-04-12 11:42:39 +0200 |
commit | fea0e1820b51fff95c85518eb9cf3386f367908d (patch) | |
tree | fc9ca71103216ce6200042036c59ba56e2b54713 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 6a97734f2222e0352f1900e3eb3167e9069b91bb (diff) |
locking/pvqspinlock: Use try_cmpxchg() in qspinlock_paravirt.h
Use try_cmpxchg(*ptr, &old, new) instead of
cmpxchg(*ptr, old, new) == old in qspinlock_paravirt.h
x86 CMPXCHG instruction returns success in ZF flag, so
this change saves a compare after cmpxchg.
No functional change intended.
Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Waiman Long <longman@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20240411192317.25432-2-ubizjak@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions