aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/arm-cs-trace-disasm.py
diff options
context:
space:
mode:
authorUros Bizjak <[email protected]>2023-01-16 16:53:37 +0000
committerThomas Gleixner <[email protected]>2023-02-06 13:22:09 +0000
commit915d4ad3830aa1a2dafda9b737749fb410cb9790 (patch)
treee8287c524625634c219ad3dc4e553a1d429bdcec /tools/perf/scripts/python/arm-cs-trace-disasm.py
parentvdso/bits.h: Add BIT_ULL() for the sake of consistency (diff)
downloadkernel-915d4ad3830aa1a2dafda9b737749fb410cb9790.tar.gz
kernel-915d4ad3830aa1a2dafda9b737749fb410cb9790.zip
posix-timers: Use atomic64_try_cmpxchg() in __update_gt_cputime()
Use atomic64_try_cmpxchg() instead of atomic64_cmpxchg() in __update_gt_cputime(). The x86 CMPXCHG instruction returns success in ZF flag, so this change saves a compare after cmpxchg() (and related move instruction in front of cmpxchg()). Also, atomic64_try_cmpxchg() implicitly assigns old *ptr value to "old" when cmpxchg() fails. There is no need to re-read the value in the loop. No functional change intended. Signed-off-by: Uros Bizjak <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions