aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorUros Bizjak <[email protected]>2022-07-14 19:32:55 +0200
committerAndrew Morton <[email protected]>2022-09-11 21:55:07 -0700
commit693fc06e98514c2d5951ead4aca40cf8b21100b1 (patch)
tree442f100b654ab0af29f2e068850c0d88eb1fbe5f /tools/perf/scripts/python/bin
parentaa06a9bd853306c239f759018fb227d7e8f4e203 (diff)
epoll: use try_cmpxchg in list_add_tail_lockless
Use try_cmpxchg instead of cmpxchg (*ptr, old, new) == old in list_add_tail_lockless. 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://lkml.kernel.org/r/[email protected] Signed-off-by: Uros Bizjak <[email protected]> Cc: Alexander Viro <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions