Skip to content

Commit e0fda73

Browse files
zhangshkzhang-rui
authored andcommitted
thermal: cpu_cooling: Remove unused cur_freq variable
The 'cur_freq' local variable became unused after commit 84fe2ca ("cpu_cooling: Drop static-power related stuff"), let's remove it. Cc: Amit Daniel Kachhap <amit.kachhap@gmail.com> Cc: Viresh Kumar <viresh.kumar@linaro.org> Cc: Javi Merino <javi.merino@kernel.org> Cc: Zhang Rui <rui.zhang@intel.com> Cc: Eduardo Valentin <edubezval@gmail.com> Cc: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
1 parent 3512249 commit e0fda73

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/thermal/cpu_cooling.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,12 +536,11 @@ static int cpufreq_power2state(struct thermal_cooling_device *cdev,
536536
struct thermal_zone_device *tz, u32 power,
537537
unsigned long *state)
538538
{
539-
unsigned int cur_freq, target_freq;
539+
unsigned int target_freq;
540540
u32 last_load, normalised_power;
541541
struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata;
542542
struct cpufreq_policy *policy = cpufreq_cdev->policy;
543543

544-
cur_freq = cpufreq_quick_get(policy->cpu);
545544
power = power > 0 ? power : 0;
546545
last_load = cpufreq_cdev->last_load ?: 1;
547546
normalised_power = (power * 100) / last_load;

0 commit comments

Comments
 (0)