]> bbs.cooldavid.org Git - net-next-2.6.git/commit
sh: clkfwk: Abstract rate rounding helper.
authorPaul Mundt <lethal@linux-sh.org>
Fri, 15 Oct 2010 09:17:35 +0000 (18:17 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 15 Oct 2010 09:17:35 +0000 (18:17 +0900)
commitf586903d27e2503a3e7d427b3d665bbaf1b7f4d4
tree4f0cdaac4f18025f46fc35418a54747d6b294205
parent28085bc5de19cad365bcff98e9c8785c397c7c36
sh: clkfwk: Abstract rate rounding helper.

Presently the only assisted rate rounding is frequency table backed, but
there are cases where it's impractical to use a frequency table for
certain clocks (such as the FSIDIV case, which supports 65535 divisors),
and we wish to reuse the same rate rounding algorithm.

This breaks out the core of the rate rounding logic in to its own helper
routine and shuffles the frequency table logic around, switching to using
an iterator for the generic helper routine.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/sh/clk.c
include/linux/sh_clk.h