thermal: pid_gov: check for trip hyst
When a trip point has hysteresis defined the governor stops polling
as soon as temperature is < trip_temp. The sensor however accounts for
hysteresis while programming the trip points and hence triggers the
high temp trip only when temperature goes < (trip_temp - hysteresis).
Since the governor has stopped polling at this point, throttling
doesn't kick in when temperature becomes > trip_temp unless it first
goes < (trip_temp - hysteresis).
Fix this by accounting for trip temp hysteresis while calculating when
to stop the polling.
Bug
200261601
Bug
1803579
Bug
200262610
Change-Id: Ibaa72e334852f71af3cce17ee1b60f9bb7a618d6
Signed-off-by: Srikar Srimath Tirumala <srikars@nvidia.com>
Reviewed-on: http://git-master/r/
1283037
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Navneet Kumar <navneetk@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>