diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-05-16 05:09:57 +0000 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-05-27 13:20:56 +0200 |
commit | 944e9a0316e60bc5bc122e46c1fde36e5f6e9f56 (patch) | |
tree | ccec2b2a4dd1c5de8f8db9b81d68b034380734a8 /include | |
parent | 3f869d6d41d032392abafe17ea5257a2514a24a7 (diff) | |
download | linux-stable-944e9a0316e60bc5bc122e46c1fde36e5f6e9f56.tar.gz linux-stable-944e9a0316e60bc5bc122e46c1fde36e5f6e9f56.tar.bz2 linux-stable-944e9a0316e60bc5bc122e46c1fde36e5f6e9f56.zip |
cpufreq: governors: Move get_governor_parent_kobj() to cpufreq.c
get_governor_parent_kobj() can be used by any governor, generic
cpufreq governors or platform specific ones and so must be present in
cpufreq.c instead of cpufreq_governor.c.
This patch moves it to cpufreq.c. This also adds
EXPORT_SYMBOL_GPL(get_governor_parent_kobj) so that modules can use
this function too.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/cpufreq.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 037d36ae63e5..dd1a5d41357b 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -340,6 +340,7 @@ const char *cpufreq_get_current_driver(void); int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu); int cpufreq_update_policy(unsigned int cpu); bool have_governor_per_policy(void); +struct kobject *get_governor_parent_kobj(struct cpufreq_policy *policy); #ifdef CONFIG_CPU_FREQ /* query the current CPU frequency (in kHz). If zero, cpufreq couldn't detect it */ |