diff options
| author | Shaokun Zhang <[email protected]> | 2019-02-18 14:22:30 +0800 |
|---|---|---|
| committer | Zhang Rui <[email protected]> | 2019-03-18 22:11:06 +0800 |
| commit | e0fda7377d30685feaef4d93d9fdfde91c5d7d9a (patch) | |
| tree | 61afb95efb2b8a7af378669200db9fe27752b3ea | |
| parent | 35122495a8c6683e863acf7b05a7036b2be64c7a (diff) | |
thermal: cpu_cooling: Remove unused cur_freq variable
The 'cur_freq' local variable became unused after commit 84fe2cab4859
("cpu_cooling: Drop static-power related stuff"), let's remove it.
Cc: Amit Daniel Kachhap <[email protected]>
Cc: Viresh Kumar <[email protected]>
Cc: Javi Merino <[email protected]>
Cc: Zhang Rui <[email protected]>
Cc: Eduardo Valentin <[email protected]>
Cc: Daniel Lezcano <[email protected]>
Signed-off-by: Shaokun Zhang <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Signed-off-by: Zhang Rui <[email protected]>
| -rw-r--r-- | drivers/thermal/cpu_cooling.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index 6fff16113628..f7c1f49ec87f 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c @@ -536,12 +536,11 @@ static int cpufreq_power2state(struct thermal_cooling_device *cdev, struct thermal_zone_device *tz, u32 power, unsigned long *state) { - unsigned int cur_freq, target_freq; + unsigned int target_freq; u32 last_load, normalised_power; struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; struct cpufreq_policy *policy = cpufreq_cdev->policy; - cur_freq = cpufreq_quick_get(policy->cpu); power = power > 0 ? power : 0; last_load = cpufreq_cdev->last_load ?: 1; normalised_power = (power * 100) / last_load; |