linux/drivers/thermal
Hridya Valsaraju eaa42a5732 ANDROID: GKI: drivers: of-thermal: Relate thermal zones using same sensor
A sensor may need to be monitored by two or more thermal governors to
deploy different mitigation strategies to control the device temperature.
To achieve this the sensors driver has to register the same sensor as
multiple thermal zones and then let the different governors monitor and
mitigate. The sensor driver should handle the aggregation of thresholds,
trip notification and synchronization between thermal zones.

Add support in of-thermal to create and handle sibling thermal zones.
Thermal zones that share the same sensor are siblings. To establish a
relationship between then the sibling zones, a sensor meta data is shared
across multiple sibling thermal zones. This meta data will aid in
traversing through all the sibling thermal zones.

Test: build
Bug: 149945768
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Change-Id: I2e26d71ca30927dfa23b58e00a7de246bfebb274
(cherry picked commit from 8a12149c264c7b871932ad90f76e5981452bb4bb)
Fixes: 3b10834869 ("ANDROID: GKI: Add devm_thermal_of_virtual_sensor_register API.")
[hridya: partial cherry-pick from snapshot]
Signed-off-by: Hridya Valsaraju <hridya@google.com>
2020-04-20 23:52:49 +00:00
..
broadcom thermal: brcmstb_thermal: Do not use DT coefficients 2020-03-05 16:42:22 +01:00
int340x_thermal thermal/int340x_thermal: fix mode setting 2019-04-20 09:15:56 +02:00
qcom drivers: thermal: tsens: Don't print error message on -EPROBE_DEFER 2019-06-15 11:54:02 +02:00
samsung thermal: samsung: Fix incorrect check after code merge 2019-04-20 09:15:56 +02:00
st
tegra
ti-soc-thermal
armada_thermal.c thermal: armada: fix a test in probe() 2019-12-01 09:16:54 +01:00
clock_cooling.c
cpu_cooling.c ANDROID: GKI: drivers: cpu_cooling: allow platform freq mitigation 2020-04-17 03:23:39 +00:00
da9062-thermal.c
db8500_thermal.c
devfreq_cooling.c
dove_thermal.c
fair_share.c
gov_bang_bang.c
hisi_thermal.c
imx_thermal.c
intel_bxt_pmic_thermal.c
intel_pch_thermal.c
intel_powerclamp.c thermal/intel_powerclamp: fix truncated kthread name 2019-04-20 09:15:56 +02:00
intel_quark_dts_thermal.c
intel_soc_dts_iosf.c
intel_soc_dts_iosf.h
intel_soc_dts_thermal.c x86/cpu: Sanitize FAM6_ATOM naming 2019-05-14 19:17:53 +02:00
Kconfig
kirkwood_thermal.c
Makefile
max77620_thermal.c
mtk_thermal.c thermal: mediatek: fix register index error 2020-01-27 14:50:19 +01:00
of-thermal.c ANDROID: GKI: drivers: of-thermal: Relate thermal zones using same sensor 2020-04-20 23:52:49 +00:00
power_allocator.c
qcom-spmi-temp-alarm.c
qoriq_thermal.c
rcar_gen3_thermal.c thermal: rcar_gen3_thermal: fix interrupt type 2020-01-27 14:50:48 +01:00
rcar_thermal.c thermal: rcar_thermal: Prevent hardware access during system suspend 2019-12-01 09:17:00 +01:00
rockchip_thermal.c
spear_thermal.c
step_wise.c
tango_thermal.c
thermal_core.c UPSTREAM: GKI: thermal: make device_register's type argument const 2020-04-13 17:46:47 -07:00
thermal_core.h ANDROID: GKI: Add functions of_thermal_handle_trip/of_thermal_handle_trip_temp 2020-04-06 07:17:39 -07:00
thermal_helpers.c
thermal_hwmon.c thermal_hwmon: Sanitize thermal_zone type 2019-10-11 18:21:19 +02:00
thermal_hwmon.h thermal: hwmon: inline helpers when CONFIG_THERMAL_HWMON is not set 2019-02-12 19:47:21 +01:00
thermal_sysfs.c thermal: Fix locking in cooling device sysfs update cur_state 2019-02-12 19:47:03 +01:00
thermal-generic-adc.c thermal: generic-adc: Fix adc to temp interpolation 2019-02-12 19:47:19 +01:00
uniphier_thermal.c
user_space.c
x86_pkg_temp_thermal.c
zx2967_thermal.c