aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorTvrtko Ursulin <[email protected]>2016-10-04 09:29:28 +0100
committerTvrtko Ursulin <[email protected]>2016-10-04 11:09:59 +0100
commit5a659383816aa548e7a1049d3dd5dd552966acac (patch)
tree48f568dc316cf2aaad7bfcf79f3e5c6aa9cbf6cb /tools/perf/scripts/python/net_dropmonitor.py
parent47188574a966b9b9ba0aa5a0fa88d934a331dc07 (diff)
drm/i915: Use binary search when looking for shadowed registers
Simply replace the linear search with the kernel's binary search implementation. There is only six registers currently in that table so this may not be that interesting. It adds a function call so hopefully remains performance neutral for now. v2: No need for manual conversion to bool for return. (Joonas Lahtinen) Signed-off-by: Tvrtko Ursulin <[email protected]> Reviewed-by: Joonas Lahtinen <[email protected]> Reviewed-by: Chris Wilson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions