diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-10-03 20:29:07 +0530 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-10-16 00:50:33 +0200 |
commit | 70e9e778337973d5bf57004092b360bd3f3c412f (patch) | |
tree | 8c8f19f60b723421764caee1926f15db36bdb35b /include/linux/cpufreq.h | |
parent | 9909aa1e3b69eb05201bdbd2b9bde00c50c1723a (diff) | |
download | linux-stable-70e9e778337973d5bf57004092b360bd3f3c412f.tar.gz linux-stable-70e9e778337973d5bf57004092b360bd3f3c412f.tar.bz2 linux-stable-70e9e778337973d5bf57004092b360bd3f3c412f.zip |
cpufreq: create cpufreq_generic_init() routine
Many CPUFreq drivers for SMP system (where all cores share same clock lines), do
similar stuff in their ->init() part.
This patch creates a generic routine in cpufreq core which can be used by these
so that we can remove some redundant code.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/cpufreq.h')
-rw-r--r-- | include/linux/cpufreq.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 36ccd0bf1304..0aba2a6cadaf 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -424,6 +424,9 @@ void cpufreq_frequency_table_put_attr(unsigned int cpu); int cpufreq_table_validate_and_show(struct cpufreq_policy *policy, struct cpufreq_frequency_table *table); +int cpufreq_generic_init(struct cpufreq_policy *policy, + struct cpufreq_frequency_table *table, + unsigned int transition_latency); static inline int cpufreq_generic_exit(struct cpufreq_policy *policy) { cpufreq_frequency_table_put_attr(policy->cpu); |