linux/drivers/mmc
Tomasz Figa 8880a4a526 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>
2014-03-03 10:21:32 -05:00
..
card mmc: block: Fixup busy detection while invoking stop cmd at recovery 2014-02-23 10:41:11 -05:00
core mmc: core: Respect host's max_busy_timeout when sending sleep cmd 2014-02-23 10:40:49 -05:00
host mmc: sdhci-s3c: Use shifts to divide by powers of two 2014-03-03 10:21:32 -05:00
Kconfig
Makefile mmc: sdhci-pci: add platform data 2012-01-11 23:58:47 -05:00