aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorTvrtko Ursulin <[email protected]>2016-04-07 17:04:33 +0100
committerTvrtko Ursulin <[email protected]>2016-04-12 14:30:41 +0100
commit33c582c10aea6162711a11c1a7e6f21598fc3033 (patch)
tree9503dbb00bfd29c1b43572f7e4e9ece68c2b0208 /tools/perf/scripts/python/call-graph-from-postgresql.py
parenta57a4a67e5ee1826df0f054ad98f397829e4c573 (diff)
drm/i915: Simplify for_each_fw_domain iterators
As the vast majority of users do not use the domain id variable, we can eliminate it from the iterator and also change the latter using the same principle as was recently done for for_each_engine. For a couple of callers which do need the domain mask, store it in the domain array (which already has the domain id), then both can be retrieved thence. Result is clearer code and smaller generated binary, especially in the tight fw get/put loops. Also, relationship between domain id and mask is no longer assumed in the macro. v2: Improve grammar in the commit message and rename the iterator to for_each_fw_domain_masked for consistency. (Dave Gordon) Signed-off-by: Tvrtko Ursulin <[email protected]> Reviewed-by: Chris Wilson <[email protected]> Reviewed-by: Dave Gordon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions