Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
exynos_tmu_v2: Also hook here
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel2392 committed Oct 8, 2024
1 parent 3f0157d commit a3f7d7c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions drivers/thermal/samsung/exynos_tmu_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -2120,6 +2120,15 @@ static int exynos_tmu_parse_ect(struct exynos_tmu_data *data)

for (i = 0; i < function->num_of_range; ++i) {
temperature = function->range_list[i].lower_bound_temperature;

if (function->range_list[i].max_frequency == 2400000) {
function->range_list[i].max_frequency = 2704000;
} else if (function->range_list[i].max_frequency == 2288000) {
function->range_list[i].max_frequency = 2496000;
} else if (function->range_list[i].max_frequency == 2112000) {
function->range_list[i].max_frequency = 2400000;
}

freq = function->range_list[i].max_frequency;
tz->ops->set_trip_temp(tz, i, temperature * MCELSIUS);

Expand Down

0 comments on commit a3f7d7c

Please sign in to comment.