diff options
author | Uros Bizjak <[email protected]> | 2024-10-03 10:44:31 +0200 |
---|---|---|
committer | Jani Nikula <[email protected]> | 2024-10-23 15:45:50 +0300 |
commit | 7a118f68fa828ee7b13e639353895118ef2056d7 (patch) | |
tree | ec565eb788dbce922e1dff316edc18cc1a21b5a5 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 3349f07a2c86fd024f7777c0bcff15cfcf97b04f (diff) |
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 <[email protected]>
Cc: Jani Nikula <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: Rodrigo Vivi <[email protected]>
Cc: Tvrtko Ursulin <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Simona Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Jani Nikula <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions