aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorUros Bizjak <[email protected]>2022-07-12 17:27:41 +0200
committerJens Axboe <[email protected]>2022-07-12 14:39:06 -0600
commit939f9dd040fe1063d884f8f0f89b037093fe2341 (patch)
tree71f1874add6d679773e8bd0d4000690fde284f85 /include/linux/debugobjects.h
parentf4b1e27db49c8b985b116aa99481b4c6a4342ed4 (diff)
block: Use try_cmpxchg in update_io_ticks
Use try_cmpxchg instead of cmpxchg (*ptr, old, new) == old in update_io_ticks. x86 CMPXCHG instruction returns success in ZF flag, so this change saves a compare after cmpxchg (and related move instruction in front of cmpxchg). No functional change intended. Signed-off-by: Uros Bizjak <[email protected]> Cc: Jens Axboe <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions