Skip to content

Commit

Permalink
thermal/cpu_cooling: rename max_freq as clipped_freq in notifier
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Viresh Kumar authored and Eduardo Valentin committed Aug 15, 2015
1 parent 59f0d21 commit abcbcc2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/thermal/cpu_cooling.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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);
Expand Down

0 comments on commit abcbcc2

Please sign in to comment.