aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>2016-10-04 09:29:28 +0100
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2016-10-04 11:09:59 +0100
commit5a659383816aa548e7a1049d3dd5dd552966acac (patch)
tree48f568dc316cf2aaad7bfcf79f3e5c6aa9cbf6cb /scripts/stackusage
parentdrm/i915: Sort the shadow register table (diff)
downloadlinux-5a659383816aa548e7a1049d3dd5dd552966acac.tar.gz
linux-5a659383816aa548e7a1049d3dd5dd552966acac.zip
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 <tvrtko.ursulin@intel.com> Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions