aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorUros Bizjak <[email protected]>2023-11-14 17:12:01 +0100
committerAndrew Morton <[email protected]>2023-12-10 17:21:33 -0800
commit0311d8272406b2ec47f485bef887723cc352a489 (patch)
tree0938025c927835f78755743039c308cf598bd3fc /include/linux/debugobjects.h
parent1ee918ffa6d4776a69708b013fd7e7006619158a (diff)
kexec: use atomic_try_cmpxchg in crash_kexec
Use atomic_try_cmpxchg instead of cmpxchg (*ptr, old, new) == old in crash_kexec(). x86 CMPXCHG instruction returns success in ZF flag, so this change saves a compare after cmpxchg. No functional change intended. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Uros Bizjak <[email protected]> Acked-by: Baoquan He <[email protected]> Cc: Eric Biederman <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions