diff options
| author | Taylor Xiao <txiao@nvidia.com> | 2019-05-27 03:42:45 -0400 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2019-05-29 16:44:11 -0400 |
| commit | 8a113ad5ac552c8e34f650a7a5fd4904aeffd25d (patch) | |
| tree | 258ac4243c7606cf9dc8d7e2842c1ae533a0569e /include/linux | |
| parent | e874a9ebb98998d367cc644e8544bd4fda3df7e5 (diff) | |
Thermal: support feature: pwm_period independent with fan_pwm_max
Pwm_period needn't keep the same with fan_pwm_max now, precision_multiplier
multiply with constant 100 and divide by constant 100 when caculating pwm duty.
Bug 200519087
Change-Id: Ibc684289479ee850171ef8860b577457077e7b2b
Signed-off-by: Taylor Xiao <txiao@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2125786
GVS: Gerrit_Virtual_Submit
Reviewed-by: Martin Gao <marting@nvidia.com>
Reviewed-by: Daniel Fu <danifu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/therm_est.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/therm_est.h b/include/linux/therm_est.h index f51d3feed..6cca50946 100644 --- a/include/linux/therm_est.h +++ b/include/linux/therm_est.h | |||
| @@ -145,7 +145,7 @@ struct fan_dev_data { | |||
| 145 | struct delayed_work fan_ramp_work; | 145 | struct delayed_work fan_ramp_work; |
| 146 | struct delayed_work fan_hyst_work; | 146 | struct delayed_work fan_hyst_work; |
| 147 | int step_time; | 147 | int step_time; |
| 148 | int precision_multiplier; | 148 | long long precision_multiplier; |
| 149 | struct mutex fan_state_lock; | 149 | struct mutex fan_state_lock; |
| 150 | int pwm_period; | 150 | int pwm_period; |
| 151 | int fan_pwm_max; | 151 | int fan_pwm_max; |
| @@ -181,7 +181,7 @@ struct fan_dev_data { | |||
| 181 | }; | 181 | }; |
| 182 | 182 | ||
| 183 | #define DEBUG 0 | 183 | #define DEBUG 0 |
| 184 | 184 | #define MULTIQP (100) | |
| 185 | #define DEFERRED_RESUME_TIME 3000 | 185 | #define DEFERRED_RESUME_TIME 3000 |
| 186 | #define THERMAL_GOV_PID "pid_thermal_gov" | 186 | #define THERMAL_GOV_PID "pid_thermal_gov" |
| 187 | #define THERMAL_CONTINUOUS_GOV "continuous_therm_gov" | 187 | #define THERMAL_CONTINUOUS_GOV "continuous_therm_gov" |
