summaryrefslogtreecommitdiff
path: root/debugger
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-09-01 19:00:36 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2018-09-03 09:38:36 +0100
commit20087bf22698612a526353f022bc232e2b0dcdcc (patch)
tree10167ccbaca9ea8e6dec45d1995e56e029e14108 /debugger
parent9e5fa9112546e5767d57237db8eace7c815b1996 (diff)
lib: Use a bsearch to find the module name
Even with a small number of known drivers (6), a bsearch will take at most 3 steps, whereas the linear search will take 3 steps on average. In the future with more known drivers, the logN bsearch will be even more advantageous. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Katarzyna Dec <katarzyna.dec@intel.com> Reviewed-by: Katarzyna Dec <katarzyna.dec@intel.com>
Diffstat (limited to 'debugger')
0 files changed, 0 insertions, 0 deletions