Skip to content

Commit

Permalink
drivers: thermal: Remove useless check
Browse files Browse the repository at this point in the history
  • Loading branch information
EmanuelCN authored and diphons committed Feb 26, 2024
1 parent cc55a5b commit ae15a79
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions drivers/thermal/cpu_cooling.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@

#include <trace/events/thermal.h>

#define USE_LMH_DEV 0

/*
* Cooling state <-> CPUFreq frequency
*
Expand Down Expand Up @@ -465,18 +463,9 @@ static int cpufreq_set_cur_state(struct thermal_cooling_device *cdev,
else
cpufreq_update_policy(cpufreq_cdev->policy->cpu);
#else
if (USE_LMH_DEV && cpufreq_cdev->plat_ops &&
cpufreq_cdev->plat_ops->ceil_limit) {
cpufreq_cdev->plat_ops->ceil_limit(cpufreq_cdev->policy->cpu,
clip_freq);
get_online_cpus();
cpufreq_update_policy(cpufreq_cdev->policy->cpu);
put_online_cpus();
} else {
get_online_cpus();
cpufreq_update_policy(cpufreq_cdev->policy->cpu);
put_online_cpus();
}
get_online_cpus();
cpufreq_update_policy(cpufreq_cdev->policy->cpu);
put_online_cpus();
#endif
return 0;
}
Expand Down

0 comments on commit ae15a79

Please sign in to comment.