diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-10-15 05:17:35 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-10-15 05:17:35 -0400 |
commit | f586903d27e2503a3e7d427b3d665bbaf1b7f4d4 (patch) | |
tree | 4f0cdaac4f18025f46fc35418a54747d6b294205 /include/linux/sh_clk.h | |
parent | 28085bc5de19cad365bcff98e9c8785c397c7c36 (diff) |
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>
Diffstat (limited to 'include/linux/sh_clk.h')
-rw-r--r-- | include/linux/sh_clk.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sh_clk.h b/include/linux/sh_clk.h index 8ae37707a4a4..49f6e9b6eda2 100644 --- a/include/linux/sh_clk.h +++ b/include/linux/sh_clk.h | |||
@@ -53,6 +53,7 @@ struct clk { | |||
53 | struct dentry *dentry; | 53 | struct dentry *dentry; |
54 | struct clk_mapping *mapping; | 54 | struct clk_mapping *mapping; |
55 | struct cpufreq_frequency_table *freq_table; | 55 | struct cpufreq_frequency_table *freq_table; |
56 | unsigned int nr_freqs; | ||
56 | }; | 57 | }; |
57 | 58 | ||
58 | #define CLK_ENABLE_ON_INIT (1 << 0) | 59 | #define CLK_ENABLE_ON_INIT (1 << 0) |