diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-07-30 12:40:33 +0530 |
---|---|---|
committer | Sasha Levin <sasha.levin@oracle.com> | 2016-06-17 09:43:51 -0400 |
commit | f5a826aa29aba9e2800ae8269df2f274d6bb322f (patch) | |
tree | ce7008f878c79185c23647330d9ee99c0b824c4c | |
parent | 3327b0c01cf4941a7692e715c158bce85011e0a6 (diff) | |
download | linux-stable-f5a826aa29aba9e2800ae8269df2f274d6bb322f.tar.gz linux-stable-f5a826aa29aba9e2800ae8269df2f274d6bb322f.tar.bz2 linux-stable-f5a826aa29aba9e2800ae8269df2f274d6bb322f.zip |
thermal/cpu_cooling: rename cpufreq_val as clipped_freq
[ Upstream commit 59f0d21883f39d27f14408d4ca211dce80658963 ]
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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
-rw-r--r-- | drivers/thermal/cpu_cooling.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index f65f0d109fc8..b7693555942f 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c @@ -52,7 +52,7 @@ * registered cooling device. * @cpufreq_state: integer value representing the current state of cpufreq * cooling devices. - * @cpufreq_val: integer value representing the absolute value of the clipped + * @clipped_freq: integer value representing the absolute value of the clipped * frequency. * @max_level: maximum cooling level. One less than total number of valid * cpufreq frequencies. @@ -66,7 +66,7 @@ struct cpufreq_cooling_device { int id; struct thermal_cooling_device *cool_dev; unsigned int cpufreq_state; - unsigned int cpufreq_val; + unsigned int clipped_freq; unsigned int max_level; unsigned int *freq_table; /* In descending order */ struct cpumask allowed_cpus; @@ -195,7 +195,7 @@ static int cpufreq_thermal_notifier(struct notifier_block *nb, &cpufreq_dev->allowed_cpus)) continue; - max_freq = cpufreq_dev->cpufreq_val; + max_freq = cpufreq_dev->clipped_freq; if (policy->max != max_freq) cpufreq_verify_within_limits(policy, 0, max_freq); @@ -273,7 +273,7 @@ static int cpufreq_set_cur_state(struct thermal_cooling_device *cdev, clip_freq = cpufreq_device->freq_table[state]; cpufreq_device->cpufreq_state = state; - cpufreq_device->cpufreq_val = clip_freq; + cpufreq_device->clipped_freq = clip_freq; cpufreq_update_policy(cpu); @@ -383,7 +383,7 @@ __cpufreq_cooling_register(struct device_node *np, pr_debug("%s: freq:%u KHz\n", __func__, freq); } - cpufreq_dev->cpufreq_val = cpufreq_dev->freq_table[0]; + cpufreq_dev->clipped_freq = cpufreq_dev->freq_table[0]; cpufreq_dev->cool_dev = cool_dev; mutex_lock(&cooling_cpufreq_lock); |