diff options
author | Fabio Baltieri <fabio.baltieri@linaro.org> | 2013-01-31 04:44:40 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-02-01 18:01:16 -0500 |
commit | 2624f90c16413990ecb0414400174a066319a9f5 (patch) | |
tree | 5b26993f4b28fd21635b7cf476f02dae76b084c2 /drivers/cpufreq/cpufreq_governor.c | |
parent | 6f35a65fbb570086428596d907df6300abffd948 (diff) |
cpufreq: governors: implement generic policy_is_shared
Implement a generic helper function policy_is_shared() to replace the
current dbs_sw_coordinated_cpus() at cpufreq level, so that it can be
used by code other than cpufreq governors.
Suggested-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq_governor.c')
-rw-r--r-- | drivers/cpufreq/cpufreq_governor.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/cpufreq/cpufreq_governor.c b/drivers/cpufreq/cpufreq_governor.c index 46f96a4cebf9..67e235acf43b 100644 --- a/drivers/cpufreq/cpufreq_governor.c +++ b/drivers/cpufreq/cpufreq_governor.c | |||
@@ -161,14 +161,6 @@ void dbs_check_cpu(struct dbs_data *dbs_data, int cpu) | |||
161 | } | 161 | } |
162 | EXPORT_SYMBOL_GPL(dbs_check_cpu); | 162 | EXPORT_SYMBOL_GPL(dbs_check_cpu); |
163 | 163 | ||
164 | bool dbs_sw_coordinated_cpus(struct cpu_dbs_common_info *cdbs) | ||
165 | { | ||
166 | struct cpufreq_policy *policy = cdbs->cur_policy; | ||
167 | |||
168 | return cpumask_weight(policy->cpus) > 1; | ||
169 | } | ||
170 | EXPORT_SYMBOL_GPL(dbs_sw_coordinated_cpus); | ||
171 | |||
172 | static inline void dbs_timer_init(struct dbs_data *dbs_data, int cpu, | 164 | static inline void dbs_timer_init(struct dbs_data *dbs_data, int cpu, |
173 | unsigned int sampling_rate) | 165 | unsigned int sampling_rate) |
174 | { | 166 | { |