diff options
Diffstat (limited to 'drivers/cpufreq/cpufreq.c')
-rw-r--r-- | drivers/cpufreq/cpufreq.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index b3d9368339af..ef5ed9470de9 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c | |||
@@ -238,13 +238,13 @@ int cpufreq_generic_init(struct cpufreq_policy *policy, | |||
238 | } | 238 | } |
239 | EXPORT_SYMBOL_GPL(cpufreq_generic_init); | 239 | EXPORT_SYMBOL_GPL(cpufreq_generic_init); |
240 | 240 | ||
241 | /* Only for cpufreq core internal use */ | ||
242 | struct cpufreq_policy *cpufreq_cpu_get_raw(unsigned int cpu) | 241 | struct cpufreq_policy *cpufreq_cpu_get_raw(unsigned int cpu) |
243 | { | 242 | { |
244 | struct cpufreq_policy *policy = per_cpu(cpufreq_cpu_data, cpu); | 243 | struct cpufreq_policy *policy = per_cpu(cpufreq_cpu_data, cpu); |
245 | 244 | ||
246 | return policy && cpumask_test_cpu(cpu, policy->cpus) ? policy : NULL; | 245 | return policy && cpumask_test_cpu(cpu, policy->cpus) ? policy : NULL; |
247 | } | 246 | } |
247 | EXPORT_SYMBOL_GPL(cpufreq_cpu_get_raw); | ||
248 | 248 | ||
249 | unsigned int cpufreq_generic_get(unsigned int cpu) | 249 | unsigned int cpufreq_generic_get(unsigned int cpu) |
250 | { | 250 | { |
@@ -1626,8 +1626,8 @@ int cpufreq_generic_suspend(struct cpufreq_policy *policy) | |||
1626 | int ret; | 1626 | int ret; |
1627 | 1627 | ||
1628 | if (!policy->suspend_freq) { | 1628 | if (!policy->suspend_freq) { |
1629 | pr_err("%s: suspend_freq can't be zero\n", __func__); | 1629 | pr_debug("%s: suspend_freq not defined\n", __func__); |
1630 | return -EINVAL; | 1630 | return 0; |
1631 | } | 1631 | } |
1632 | 1632 | ||
1633 | pr_debug("%s: Setting suspend-freq: %u\n", __func__, | 1633 | pr_debug("%s: Setting suspend-freq: %u\n", __func__, |
@@ -2031,8 +2031,7 @@ static int __cpufreq_governor(struct cpufreq_policy *policy, | |||
2031 | if (!try_module_get(policy->governor->owner)) | 2031 | if (!try_module_get(policy->governor->owner)) |
2032 | return -EINVAL; | 2032 | return -EINVAL; |
2033 | 2033 | ||
2034 | pr_debug("__cpufreq_governor for CPU %u, event %u\n", | 2034 | pr_debug("%s: for CPU %u, event %u\n", __func__, policy->cpu, event); |
2035 | policy->cpu, event); | ||
2036 | 2035 | ||
2037 | mutex_lock(&cpufreq_governor_lock); | 2036 | mutex_lock(&cpufreq_governor_lock); |
2038 | if ((policy->governor_enabled && event == CPUFREQ_GOV_START) | 2037 | if ((policy->governor_enabled && event == CPUFREQ_GOV_START) |