aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorUros Bizjak <[email protected]>2023-09-14 18:34:02 +0200
committerSteven Rostedt (Google) <[email protected]>2023-10-03 21:44:38 -0400
commitbdf4fb628093b4ab2f4eb312256233a2ae0594b7 (patch)
tree2935e2509d51097ed3eb9be16b1038f60f0a0049 /net/lapb/lapb_iface.c
parenta1f157c7a3bb342b972c2830a0ad53f627000a04 (diff)
ring_buffer: Use try_cmpxchg instead of cmpxchg in rb_insert_pages
Use try_cmpxchg instead of cmpxchg (*ptr, old, new) == old in rb_insert_pages. 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. Link: https://lore.kernel.org/linux-trace-kernel/[email protected] Cc: Steven Rostedt <[email protected]> Cc: Masami Hiramatsu <[email protected]> Signed-off-by: Uros Bizjak <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions