aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2019-12-06 16:04:26 +0000
committerChris Wilson <[email protected]>2019-12-06 19:09:33 +0000
commit5e6a94713be051c491cd47c85263661af07b629c (patch)
treec6c1963adcf71fe70a916320ddc2b4391cc62be9 /tools/perf/scripts/python/exported-sql-viewer.py
parentb66ecd0438bf6079d08e8f2afea6114f468f56f4 (diff)
drm/i915: Check for error before calling cmpxchg()
Only do the locked compare of the existing fence->error if we actually need to set an error. As we tend to call i915_sw_fence_set_error_once() unconditionally, it saves on typing to put the common has-error check into the inline. Signed-off-by: Chris Wilson <[email protected]> Reviewed-by: Matthew Auld <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions