android_kernel_xiaomi_sm8350/Documentation/thermal
Sascha Hauer 060c034a97 thermal: Add support for hardware-tracked trip points
This adds support for hardware-tracked trip points to the device tree
thermal sensor framework.

The framework supports an arbitrary number of trip points. Whenever
the current temperature is updated, the trip points immediately
below and above the current temperature are found. A .set_trips
callback is then called with the temperatures. If there is no trip
point above or below the current temperature, the passed trip
temperature will be -INT_MAX or INT_MAX respectively. In this callback,
the driver should program the hardware such that it is notified
when either of these trip points are triggered. When a trip point
is triggered, the driver should call `thermal_zone_device_update'
for the respective thermal zone. This will cause the trip points
to be updated again.

If .set_trips is not implemented, the framework behaves as before.

This patch is based on an earlier version from Mikko Perttunen
<mikko.perttunen@kapsi.fi>

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Eduardo Valentin <edubezval@gmail.com>
Cc: linux-pm@vger.kernel.org
Reviewed-by: Javi Merino <javi.merino@arm.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
2016-09-27 14:02:16 +08:00
..
cpu-cooling-api.txt thermal: cpu_cooling: implement the power cooling device API 2015-05-04 21:27:52 -07:00
exynos_thermal
exynos_thermal_emulation
intel_powerclamp.txt Doc: PM: Fix a typo in intel_powerclamp.txt 2016-06-30 13:05:40 -06:00
nouveau_thermal
power_allocator.txt thermal: power_allocator: relax the requirement of two passive trip points 2015-09-14 07:41:45 -07:00
sysfs-api.txt thermal: Add support for hardware-tracked trip points 2016-09-27 14:02:16 +08:00
x86_pkg_temperature_thermal