diff options
| author | Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org> | 2018-01-08 23:22:16 +0530 |
|---|---|---|
| committer | Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org> | 2018-01-15 17:29:31 +0530 |
| commit | bf15badbff75cfbea007c5b02d016a0d22da5f5c (patch) | |
| tree | a555f3038d8db98963bb5a07632868fc86c6f631 /include/linux | |
| parent | 1296062336d46e9fdd5b6692c1b731162e82d88b (diff) | |
msm: thermal: Add support to monitor only one tsens for VDD restriction
Currently VDD restriction feature monitors all tsens for low
temperature condition. There can be interrupt storm due to
temperature oscillation between trigger and clear thresholds
of all these sensors. It may lead to power issues due to frequent
tsens interrupt wake up.
Add support to monitor only one sensor for VDD restriction feature.
It helps to configure one optimal sensor for this feature if above
mentioned scenario is a concern. Add an optional devicetree property
"qcom,vdd-restriction-sensor-id" to specify sensor id to monitor.
If not defined, monitor all tsens for VDD restriction.
Change-Id: I9a36952cbcb40ebca4de5e8357529842b2f77187
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/msm_thermal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/msm_thermal.h b/include/linux/msm_thermal.h index 33286c2d81fc..1098a0c9afaa 100644 --- a/include/linux/msm_thermal.h +++ b/include/linux/msm_thermal.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2016,2018, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -54,6 +54,7 @@ struct msm_thermal_data { uint32_t freq_limit; int32_t vdd_rstr_temp_degC; int32_t vdd_rstr_temp_hyst_degC; + int32_t vdd_rstr_sensor_id; int32_t vdd_mx_min; int32_t vdd_cx_min; int32_t psm_temp_degC; |
