aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-07-30 12:40:34 +0530
committerEduardo Valentin <edubezval@gmail.com>2015-08-14 18:26:23 -0700
commitabcbcc25cb3edfc3c9af210a88c9386e353191fe (patch)
tree2a8db22944243ef221ea03fb0bc1f8be60dd4d9c /drivers/thermal
parentthermal/cpu_cooling: rename cpufreq_val as clipped_freq (diff)
downloadlinux-dev-abcbcc25cb3edfc3c9af210a88c9386e353191fe.tar.xz
linux-dev-abcbcc25cb3edfc3c9af210a88c9386e353191fe.zip
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>
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/cpu_cooling.c8
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,
unsigned long event, void *data)
{
struct cpufreq_policy *policy = data;
- unsigned long max_freq;
+ unsigned long clipped_freq;
struct cpufreq_cooling_device *cpufreq_dev;
if (event != CPUFREQ_ADJUST)
@@ -229,10 +229,10 @@ static int cpufreq_thermal_notifier(struct notifier_block *nb,
if (!cpumask_test_cpu(policy->cpu, &cpufreq_dev->allowed_cpus))
continue;
- max_freq = cpufreq_dev->clipped_freq;
+ clipped_freq = cpufreq_dev->clipped_freq;
- if (policy->max != max_freq)
- cpufreq_verify_within_limits(policy, 0, max_freq);
+ if (policy->max != clipped_freq)
+ cpufreq_verify_within_limits(policy, 0, clipped_freq);
break;
}
mutex_unlock(&cooling_list_lock);