From a3f7d7c41080b6f1bde69c35e4f4df7b049a378a Mon Sep 17 00:00:00 2001 From: Gabriel2392 Date: Tue, 8 Oct 2024 18:21:25 -0300 Subject: [PATCH] exynos_tmu_v2: Also hook here --- drivers/thermal/samsung/exynos_tmu_v2.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/thermal/samsung/exynos_tmu_v2.c b/drivers/thermal/samsung/exynos_tmu_v2.c index 70fd0c81a..f2ec310bf 100644 --- a/drivers/thermal/samsung/exynos_tmu_v2.c +++ b/drivers/thermal/samsung/exynos_tmu_v2.c @@ -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);