From: Tomasz Figa Date: Sat, 11 Jan 2014 21:39:01 +0000 (+0100) Subject: mmc: sdhci-s3c: Use shifts to divide by powers of two X-Git-Tag: v3.15-rc1~42^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8880a4a526340335403696f30daf4e05a413f3bd;p=pandora-kernel.git 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 Tested-by: Heiko Stuebner Acked-by: Heiko Stuebner Tested-by: Jaehoon Chung Acked-by; Jaehoon Chung Signed-off-by: Chris Ball --- Reading git-diff-tree failed