diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-10-15 11:33:24 +0200 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-10-15 11:33:24 +0200 |
commit | 8e122db61c98debbc35e26dd29504958cbcf2cbb (patch) | |
tree | 4323f71c79fd3df0191c6489e84b50089797101f /drivers/leds/leds-ns2.c | |
parent | sh: clkfwk: Abstract rate rounding helper. (diff) | |
download | linux-8e122db61c98debbc35e26dd29504958cbcf2cbb.tar.xz linux-8e122db61c98debbc35e26dd29504958cbcf2cbb.zip |
sh: clkfwk: Add a helper for rate rounding by divisor ranges.
This adds a new clk_rate_div_range_round() for implementing rate rounding
by divisor ranges. This can be used trivially by clocks that support
arbitrary ranged divisors without the need for rate table construction.
This should only be used by clocks that both have large divisor ranges in
addition to clocks that will never be arbitrarily scaled, as the lack of
a backing frequency table will prevent cpufreq from being able to do much
of anything with them.
Primarily intended for use as a ->recalc helper.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/leds/leds-ns2.c')
0 files changed, 0 insertions, 0 deletions