summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_parser.py
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2024-04-25 12:16:14 +0200
committerIngo Molnar <mingo@kernel.org>2024-05-18 11:15:13 +0200
commitcd84351c8c1baec86342d784feb884ace007d51c (patch)
tree8ccd6c21b7cd6cc44cf710e2379fb37ccaac474f /scripts/lib/kdoc/kdoc_parser.py
parent9d351132ed706ae24325809afa821cabf6d72568 (diff)
perf/x86/amd: Use try_cmpxchg() in events/amd/{un,}core.c
Replace this pattern in events/amd/{un,}core.c: cmpxchg(*ptr, old, new) == old ... with the simpler and faster: try_cmpxchg(*ptr, &old, new) The x86 CMPXCHG instruction returns success in the ZF flag, so this change saves a compare after the CMPXCHG. No functional change intended. Signed-off-by: Uros Bizjak <ubizjak@gmail.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20240425101708.5025-1-ubizjak@gmail.com
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions