aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorWolfram Sang <[email protected]>2020-04-08 11:46:36 +0200
committerUlf Hansson <[email protected]>2020-05-28 11:20:57 +0200
commit92fa2a567d520ed71bb810a3b24c6b60f8ef329c (patch)
treeacb992bb8becbd78a0df9d3841879603e1c3ef52 /tools/perf/scripts/python/bin
parenta8e809ecaeb49fd53bbbed05a8257d35b9858c31 (diff)
mmc: renesas_sdhi: refactor calculation of best TAP
To select the best TAP, we need to find the longest stream of set bits in a bit field. There is now a helper function for bitmaps which iterates over all region of set bits. Using it makes the code much more concise and easier to understand. Double so, because we need to handle two bitmaps in the near future. Remove a superfluous comment while here. Signed-off-by: Wolfram Sang <[email protected]> Reviewed-by: Yoshihiro Shimoda <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions