Skip to content

Commit

Permalink
exynos_tmu: remove restriction of max cpufreq
Browse files Browse the repository at this point in the history
* Max frequency could be restricted in other locations of the Kernel
  since value here could not(or difficult) to change after boot.

Signed-off-by: morogoku <morogoku@hotmail.com>
Signed-off-by: djb77 <dwayne.bakewell@gmail.com>
  • Loading branch information
jesec authored and followmsi committed Mar 26, 2019
1 parent d3126d0 commit efbac5d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/thermal/samsung/exynos_tmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1142,6 +1142,11 @@ static int exynos_tmu_ect_set_information(struct platform_device *pdev)
else
pdata->trigger_type[i] = (i == function->num_of_range - 1 ? HW_TRIP : THROTTLE_ACTIVE);

if (function->range_list[i].max_frequency == 2704000)
function->range_list[i].max_frequency = -1;
if (function->range_list[i].max_frequency == 1586000)
function->range_list[i].max_frequency = -1;

pdata->freq_tab[i].temp_level = function->range_list[i].lower_bound_temperature;
pdata->freq_tab[i].freq_clip_max = function->range_list[i].max_frequency;

Expand Down

0 comments on commit efbac5d

Please sign in to comment.