From 8a113ad5ac552c8e34f650a7a5fd4904aeffd25d Mon Sep 17 00:00:00 2001 From: Taylor Xiao Date: Mon, 27 May 2019 15:42:45 +0800 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/2125786 GVS: Gerrit_Virtual_Submit Reviewed-by: Martin Gao Reviewed-by: Daniel Fu Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/linux/therm_est.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/linux') 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 { struct delayed_work fan_ramp_work; struct delayed_work fan_hyst_work; int step_time; - int precision_multiplier; + long long precision_multiplier; struct mutex fan_state_lock; int pwm_period; int fan_pwm_max; @@ -181,7 +181,7 @@ struct fan_dev_data { }; #define DEBUG 0 - +#define MULTIQP (100) #define DEFERRED_RESUME_TIME 3000 #define THERMAL_GOV_PID "pid_thermal_gov" #define THERMAL_CONTINUOUS_GOV "continuous_therm_gov" -- cgit v1.2.2