aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorUros Bizjak <[email protected]>2023-09-04 17:08:49 +0200
committerAndrew Morton <[email protected]>2023-10-04 10:32:20 -0700
commit77cd814835df22e177a9caac1b046f7ffdfeedd0 (patch)
tree0c93012406c3a1f6c74a4de1822524dcfa90f527 /tools/perf/scripts/python/export-to-sqlite.py
parent91e79d22be75fec88ae58d274a7c9e49d6215099 (diff)
mm/vmstat: use this_cpu_try_cmpxchg in mod_{zone,node}_state
Use this_cpu_try_cmpxchg instead of this_cpu_cmpxchg (*ptr, old, new) == old in mod_zone_state and mod_node_state. x86 CMPXCHG instruction returns success in ZF flag, so this change saves a compare after cmpxchg (and related move instruction in front of cmpxchg). Also, try_cmpxchg implicitly assigns old *ptr value to "old" when cmpxchg fails. There is no need to re-read the value in the loop. No functional change intended. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Uros Bizjak <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions