diff options
| author | Karthik Mantravadi <mkarthik@nvidia.com> | 2020-12-30 11:04:30 -0500 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2021-01-07 05:25:44 -0500 |
| commit | 115da7825ec197d4ed0eb7d84880e8821e69c90f (patch) | |
| tree | 74aad9ddb8b493dfe1dd351ae8925c698a73a0e2 /include/linux | |
| parent | 36309cc6321684b5b77a4f26568eb9b1c301e02d (diff) | |
thermal: continuous: add custom dt entry support
Why?
In the case of therm-fan-est driver, the dt entry is not added
as part of thermal-zones. Hence, any continuous governor parameters
defined under therm-fan-est node will not be considered by the
continuous governor while binding to the thermal zone.
How?
Expose the dt parsing logic in continuous governor driver. This way
therm-fan-est driver can call the dt parsing function passing the
dt node defined under therm-fan-est dt entry.
Bug 200594433
Change-Id: I06f1653209887f674db0636fe6f5803771d46877
Signed-off-by: Karthik Mantravadi <mkarthik@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2464743
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/therm_est.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/therm_est.h b/include/linux/therm_est.h index a321f91a4..85284a5fe 100644 --- a/include/linux/therm_est.h +++ b/include/linux/therm_est.h | |||
| @@ -258,4 +258,15 @@ static inline struct device *pwm_get_tach_dev(void) | |||
| 258 | } | 258 | } |
| 259 | #endif | 259 | #endif |
| 260 | 260 | ||
| 261 | #if IS_ENABLED(CONFIG_THERMAL_GOV_CONTINUOUS) | ||
| 262 | int continuous_thermal_gov_update_params(struct thermal_zone_params *tzp, | ||
| 263 | struct device_node *np); | ||
| 264 | #else | ||
| 265 | static inline int continuous_thermal_gov_update_params( | ||
| 266 | struct thermal_zone_params *tzp, struct device_node *np) | ||
| 267 | { | ||
| 268 | return 0; | ||
| 269 | } | ||
| 270 | #endif | ||
| 271 | |||
| 261 | #endif /* _LINUX_THERM_EST_H */ | 272 | #endif /* _LINUX_THERM_EST_H */ |
