]> git.baikalelectronics.ru Git - kernel.git/commit
clk: rockchip: drop old_rate calculation on pll rate changes
authorHeiko Stuebner <heiko@sntech.de>
Tue, 15 Mar 2016 16:34:56 +0000 (17:34 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 9 May 2016 14:04:39 +0000 (16:04 +0200)
commite5b71cc6e957faf8c5940bc770d1dad85573da97
treebf14b888a642a1edecef0ac7b8c33a99ade1219c
parentc848b3254f0991cff3971f869c3afff8fc2ca9c4
clk: rockchip: drop old_rate calculation on pll rate changes

Previously when everything happened in the set_rate callbacks itself we
needed the old_rate value for the possible rate rollback, so that made
it easy to also use it in the debug output.

Now with the param-handling being done in separate functions, reading and
recalculating the current pll rate only to use it in a debug message that
won't get displayed in regular cases anyway is quite a waste.

Therefore drop that value from the debug output. In the worst case that
previous rate will have been displayed on the rate change before.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
drivers/clk/rockchip/clk-pll.c