aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-05-04 14:08:44 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2017-05-04 15:40:38 +0100
commit605d5b3297687cce9d3c4298c699188e61486a4c (patch)
tree843b54037b92d5477ae26f5c3d68b44c68a0aea1 /tools/perf/scripts/python/stackcollapse.py
parentdrm/i915: Use engine->context_pin() to report the intel_ring (diff)
downloadlinux-605d5b3297687cce9d3c4298c699188e61486a4c.tar.gz
linux-605d5b3297687cce9d3c4298c699188e61486a4c.zip
drm/i915: Avoid the branch in computing intel_ring_space()
Exploit the power-of-two ring size to compute the space across the wraparound using a mask rather than a if. Convert to unsigned integers so the operation is well defined. References: https://bugs.freedesktop.org/show_bug.cgi?id=99671 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Mika Kuoppala <mika.kuoppala@intel.com> Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20170504130846.4807-1-chris@chris-wilson.co.uk
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions