commit | 86df174585de79a460e3515ec413ea1f5a0bcf68 | [log] [tgz] |
---|---|---|
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | Wed Nov 23 15:52:30 2011 +0100 |
committer | Chris Ball <cjb@laptop.org> | Wed Jan 11 23:58:42 2012 -0500 |
tree | 5ba0a10d265947426e88f3d04fc0f961473874b0 | |
parent | 4d6144de8ba263eb3691a737c547e5b2fdc45287 [diff] |
mmc: sh_mmcif: simplify clock divisor calculation Replace ilog2(__rounddown_pow_of_two(x)) with the equivalent but much simpler fls(x) - 1. Reported-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Chris Ball <cjb@laptop.org>