summaryrefslogtreecommitdiffstats
path: root/drivers/clk/ux500
diff options
context:
space:
mode:
authorTomasz Figa <tomasz.figa@gmail.com>2014-01-11 22:39:01 +0100
committerChris Ball <chris@printf.net>2014-03-03 10:21:32 -0500
commit8880a4a526340335403696f30daf4e05a413f3bd (patch)
tree7f83dbbb7f54132ae75d30bda5359ef3808f9107 /drivers/clk/ux500
parentd9c3f5df539a8a74cc830b35838670fe0541fed1 (diff)
downloadblackbird-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/clk/ux500')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud