aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2024-10-03 10:44:31 +0200
committerJani Nikula <jani.nikula@intel.com>2024-10-23 15:45:50 +0300
commit7a118f68fa828ee7b13e639353895118ef2056d7 (patch)
treeec565eb788dbce922e1dff316edc18cc1a21b5a5 /tools/perf/scripts/python
parentdrm/i915/psr: vbt.psr.enable is only for eDP panels (diff)
downloadlinux-7a118f68fa828ee7b13e639353895118ef2056d7.tar.gz
linux-7a118f68fa828ee7b13e639353895118ef2056d7.zip
drm/i915/active: Use try_cmpxchg() in active_fence_cb()
Replace this pattern in active_fence_cb(): 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. Signed-off-by: Uros Bizjak <ubizjak@gmail.com> Cc: Jani Nikula <jani.nikula@linux.intel.com> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Cc: Tvrtko Ursulin <tursulin@ursulin.net> Cc: David Airlie <airlied@gmail.com> Cc: Simona Vetter <simona@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20241003084533.871524-1-ubizjak@gmail.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions