From ff76e3f64ed6d06ca53a81dbc42814aeecd14af2 Mon Sep 17 00:00:00 2001 From: Manaf Meethalavalappu Pallikunhi Date: Thu, 19 Nov 2015 20:10:33 +0530 Subject: [PATCH] msm: thermal: Initialize Vdd scaling max frequency variable Currently Vdd scaling max frequency variable is not initialized, which leads to wrong aggregation of thermal cpu scaling max frequency request especially during KTM boot up mitigation. Initialize low temperature scaling max frequency variable to UINT_MAX at probe function. Change-Id: I0220b9390cac33d40af0e4419d7451553ba6c5b5 Signed-off-by: Manaf Meethalavalappu Pallikunhi --- drivers/thermal/msm_thermal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/thermal/msm_thermal.c b/drivers/thermal/msm_thermal.c index 06965fe63843..af8674a16e5e 100644 --- a/drivers/thermal/msm_thermal.c +++ b/drivers/thermal/msm_thermal.c @@ -5103,6 +5103,7 @@ static void msm_thermal_init_cpu_mit(enum cpu_mit_type cpu_mit) cpus[cpu].user_max_freq = UINT_MAX; cpus[cpu].shutdown_max_freq = UINT_MAX; cpus[cpu].suspend_max_freq = UINT_MAX; + cpus[cpu].vdd_max_freq = UINT_MAX; cpus[cpu].user_min_freq = 0; cpus[cpu].limited_max_freq = UINT_MAX; cpus[cpu].limited_min_freq = 0;