]> git.baikalelectronics.ru Git - kernel.git/commit
sh: add clk_round_parent() to optimize parent clock rate
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Tue, 2 Nov 2010 11:27:24 +0000 (11:27 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 8 Nov 2010 00:35:26 +0000 (09:35 +0900)
commit41fcf34cdd534e4b73fb24c9d40f6e23ac4f09f6
tree9eaca6f86d322b700484e13cd4ebb0b3f6fc0c97
parentf4ecfe1c51e3f40375d7c9be8e10f986f3aac1ba
sh: add clk_round_parent() to optimize parent clock rate

Sometimes it is possible and reasonable to adjust the parent clock rate to
improve precision of the child clock, e.g., if the child clock has no siblings.
clk_round_parent() is a new addition to the SH clock-framework API, that
implements such an optimization for child clocks with divisors, taking all
integer values in a range.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/sh/clk/core.c
include/linux/sh_clk.h