diff options
author | Tomasz Figa <tomasz.figa@gmail.com> | 2014-01-11 22:39:01 +0100 |
---|---|---|
committer | Chris Ball <chris@printf.net> | 2014-03-03 10:21:32 -0500 |
commit | 8880a4a526340335403696f30daf4e05a413f3bd (patch) | |
tree | 7f83dbbb7f54132ae75d30bda5359ef3808f9107 /drivers/video/acornfb.c | |
parent | d9c3f5df539a8a74cc830b35838670fe0541fed1 (diff) | |
download | blackbird-op-linux-8880a4a526340335403696f30daf4e05a413f3bd.tar.gz blackbird-op-linux-8880a4a526340335403696f30daf4e05a413f3bd.zip |
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 <tomasz.figa@gmail.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Jaehoon Chung <jh80.chung@samsung.com>
Acked-by; Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Chris Ball <chris@printf.net>
Diffstat (limited to 'drivers/video/acornfb.c')
0 files changed, 0 insertions, 0 deletions