diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-07-30 03:10:34 -0400 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2015-08-14 21:26:23 -0400 |
commit | abcbcc25cb3edfc3c9af210a88c9386e353191fe (patch) | |
tree | 2a8db22944243ef221ea03fb0bc1f8be60dd4d9c | |
parent | 59f0d21883f39d27f14408d4ca211dce80658963 (diff) |
thermal/cpu_cooling: rename max_freq as clipped_freq in notifier
That's what it is for, lets name it properly.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
-rw-r--r-- | drivers/thermal/cpu_cooling.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index 9c146229738e..71dbede9edaa 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c | |||
@@ -218,7 +218,7 @@ static int cpufreq_thermal_notifier(struct notifier_block *nb, | |||
218 | unsigned long event, void *data) | 218 | unsigned long event, void *data) |
219 | { | 219 | { |
220 | struct cpufreq_policy *policy = data; | 220 | struct cpufreq_policy *policy = data; |
221 | unsigned long max_freq; | 221 | unsigned long clipped_freq; |
222 | struct cpufreq_cooling_device *cpufreq_dev; | 222 | struct cpufreq_cooling_device *cpufreq_dev; |
223 | 223 | ||
224 | if (event != CPUFREQ_ADJUST) | 224 | if (event != CPUFREQ_ADJUST) |
@@ -229,10 +229,10 @@ static int cpufreq_thermal_notifier(struct notifier_block *nb, | |||
229 | if (!cpumask_test_cpu(policy->cpu, &cpufreq_dev->allowed_cpus)) | 229 | if (!cpumask_test_cpu(policy->cpu, &cpufreq_dev->allowed_cpus)) |
230 | continue; | 230 | continue; |
231 | 231 | ||
232 | max_freq = cpufreq_dev->clipped_freq; | 232 | clipped_freq = cpufreq_dev->clipped_freq; |
233 | 233 | ||
234 | if (policy->max != max_freq) | 234 | if (policy->max != clipped_freq) |
235 | cpufreq_verify_within_limits(policy, 0, max_freq); | 235 | cpufreq_verify_within_limits(policy, 0, clipped_freq); |
236 | break; | 236 | break; |
237 | } | 237 | } |
238 | mutex_unlock(&cooling_list_lock); | 238 | mutex_unlock(&cooling_list_lock); |