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: 3b108348 ("ANDROID: GKI: Add devm_thermal_of_virtual_sensor_register API.") [hridya: partial cherry-pick from snapshot] Signed-off-by:
Hridya Valsaraju <hridya@google.com>
Loading
Please register or sign in to comment