]> git.baikalelectronics.ru Git - kernel.git/commit
clk: mmp: try to use closer one when do round rate
authorChao Xie <chao.xie@marvell.com>
Thu, 23 Jan 2014 02:47:42 +0000 (10:47 +0800)
committerMike Turquette <mturquette@linaro.org>
Thu, 27 Mar 2014 03:59:27 +0000 (20:59 -0700)
commit168e65ac23d17e7a9f0512dbf42c01b9e4ba512a
tree32dadeb1f46b6bb918edf3b32960f64201e1742e
parentba057054bc68b2ec30cdacf3bab4eb199cbc73d2
clk: mmp: try to use closer one when do round rate

The orignal code will use the bigger rate between
"previous rate" and "current rate" when caculate the
rate.
In fact, hardware cares about the closest one.
So choose the closer rate between "previous rate" and
"current rate".

Signed-off-by: Chao Xie <chao.xie@marvell.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/mmp/clk-frac.c