aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorTomasz Figa <[email protected]>2014-01-11 22:39:01 +0100
committerChris Ball <[email protected]>2014-03-03 10:21:32 -0500
commit8880a4a526340335403696f30daf4e05a413f3bd (patch)
tree7f83dbbb7f54132ae75d30bda5359ef3808f9107 /tools/perf/scripts/python
parentd9c3f5df539a8a74cc830b35838670fe0541fed1 (diff)
mmc: sdhci-s3c: Use shifts to divide by powers of two
Current implementation of sdhci_s3c_consider_clock() is highly inefficient due to multiple integer divisions by variable performed in a loop. Since only divisors that are powers of two are considered, this patch replaces them with respective shifts, removing all the integer divisions. Signed-off-by: Tomasz Figa <[email protected]> Tested-by: Heiko Stuebner <[email protected]> Acked-by: Heiko Stuebner <[email protected]> Tested-by: Jaehoon Chung <[email protected]> Acked-by; Jaehoon Chung <[email protected]> Signed-off-by: Chris Ball <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions