commit | 448c3c057a1dbb6ecf6e507a3f1a58f5eab21560 | [log] [tgz] |
---|---|---|
author | Lars-Peter Clausen <lars@metafoo.de> | Tue Sep 05 11:32:41 2017 +0200 |
committer | Stephen Boyd <sboyd@codeaurora.org> | Thu Dec 21 18:07:53 2017 -0800 |
tree | 358c0a4e6675ce3f4396baebe422d8aad2f2168d | |
parent | 063578dc5f407f67d149133818efabe457daafda [diff] |
clk: axi-clkgen: Round closest in round_rate() and recalc_rate() To minimize the rounding error round to the closest integer when calculating the result in the recalc_rate() and set_rate() callbacks. Also in order to improve precision multiply first and then divide. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>