aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-07-30 03:10:33 -0400
committerEduardo Valentin <edubezval@gmail.com>2015-08-14 21:26:22 -0400
commit59f0d21883f39d27f14408d4ca211dce80658963 (patch)
tree877cec0a58826d1acd62c85f79072ca55f744219
parenta24af233a1fd09002cabc05d6da248cc5656a2e1 (diff)
thermal/cpu_cooling: rename cpufreq_val as clipped_freq
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.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c
index 1cf897cd993c..9c146229738e 100644
--- a/drivers/thermal/cpu_cooling.c
+++ b/drivers/thermal/cpu_cooling.c
@@ -68,7 +68,7 @@ struct power_table {
68 * registered cooling device. 68 * registered cooling device.
69 * @cpufreq_state: integer value representing the current state of cpufreq 69 * @cpufreq_state: integer value representing the current state of cpufreq
70 * cooling devices. 70 * cooling devices.
71 * @cpufreq_val: integer value representing the absolute value of the clipped 71 * @clipped_freq: integer value representing the absolute value of the clipped
72 * frequency. 72 * frequency.
73 * @max_level: maximum cooling level. One less than total number of valid 73 * @max_level: maximum cooling level. One less than total number of valid
74 * cpufreq frequencies. 74 * cpufreq frequencies.
@@ -91,7 +91,7 @@ struct cpufreq_cooling_device {
91 int id; 91 int id;
92 struct thermal_cooling_device *cool_dev; 92 struct thermal_cooling_device *cool_dev;
93 unsigned int cpufreq_state; 93 unsigned int cpufreq_state;
94 unsigned int cpufreq_val; 94 unsigned int clipped_freq;
95 unsigned int max_level; 95 unsigned int max_level;
96 unsigned int *freq_table; /* In descending order */ 96 unsigned int *freq_table; /* In descending order */
97 struct cpumask allowed_cpus; 97 struct cpumask allowed_cpus;
@@ -229,7 +229,7 @@ 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->cpufreq_val; 232 max_freq = cpufreq_dev->clipped_freq;
233 233
234 if (policy->max != max_freq) 234 if (policy->max != max_freq)
235 cpufreq_verify_within_limits(policy, 0, max_freq); 235 cpufreq_verify_within_limits(policy, 0, max_freq);
@@ -517,7 +517,7 @@ static int cpufreq_set_cur_state(struct thermal_cooling_device *cdev,
517 517
518 clip_freq = cpufreq_device->freq_table[state]; 518 clip_freq = cpufreq_device->freq_table[state];
519 cpufreq_device->cpufreq_state = state; 519 cpufreq_device->cpufreq_state = state;
520 cpufreq_device->cpufreq_val = clip_freq; 520 cpufreq_device->clipped_freq = clip_freq;
521 521
522 cpufreq_update_policy(cpu); 522 cpufreq_update_policy(cpu);
523 523
@@ -859,7 +859,7 @@ __cpufreq_cooling_register(struct device_node *np,
859 pr_debug("%s: freq:%u KHz\n", __func__, freq); 859 pr_debug("%s: freq:%u KHz\n", __func__, freq);
860 } 860 }
861 861
862 cpufreq_dev->cpufreq_val = cpufreq_dev->freq_table[0]; 862 cpufreq_dev->clipped_freq = cpufreq_dev->freq_table[0];
863 cpufreq_dev->cool_dev = cool_dev; 863 cpufreq_dev->cool_dev = cool_dev;
864 864
865 mutex_lock(&cooling_cpufreq_lock); 865 mutex_lock(&cooling_cpufreq_lock);