aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2024-04-11 21:22:55 +0200
committerIngo Molnar <mingo@kernel.org>2024-04-12 11:42:39 +0200
commitfea0e1820b51fff95c85518eb9cf3386f367908d (patch)
treefc9ca71103216ce6200042036c59ba56e2b54713 /scripts/gdb/linux/utils.py
parentlocking/pvqspinlock: Use try_cmpxchg_acquire() in trylock_clear_pending() (diff)
downloadlinux-rng-fea0e1820b51fff95c85518eb9cf3386f367908d.tar.xz
linux-rng-fea0e1820b51fff95c85518eb9cf3386f367908d.zip
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 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions