From: Maxime COQUELIN Date: Wed, 29 Jan 2014 16:24:08 +0000 (+0100) Subject: clk: divider: Optimize clk_divider_bestdiv loop X-Git-Tag: omap-for-v3.16/fixes-against-rc1~91^2^2~28^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e2de78ecdc842218a2b6c422bb4a8ff4d85d11f;p=pandora-kernel.git clk: divider: Optimize clk_divider_bestdiv loop Currently, the for-loop used to try all the different dividers to find the one that best fit tries all the values from 1 to max_div, incrementing by one. In case of power-of-two, or table based divider, the loop isn't optimal. Instead of incrementing by one, this patch provides directly the next divider. Signed-off-by: Maxime Coquelin Signed-off-by: Mike Turquette --- Reading git-diff-tree failed