summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>2015-11-19 20:10:33 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:13:59 -0700
commitff76e3f64ed6d06ca53a81dbc42814aeecd14af2 (patch)
tree22229193c8edaf76764476dba532413013c60e19
parente74f5d6e676dd05f1af134f90c8b88929de9204b (diff)
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 <manafm@codeaurora.org>
-rw-r--r--drivers/thermal/msm_thermal.c1
1 files changed, 1 insertions, 0 deletions
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;