Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2f2b7464 authored by Ram Chandrasekar's avatar Ram Chandrasekar
Browse files

drivers: thermal: Add virtual thermal zone



SoCs can have multiple thermal sensors monitoring different hot spots of
a same subsystem. In those cases both the sensor temperatures should be
considered for monitoring and mitigation.

In order to support such cases, add support for virtual thermal zone
interface. These virtual thermal zone will use the dependent sensors
thermal zone to get the temperature and aggregate the different sensors
temperatures. The sensors to be used and the way temperatures are
aggregated has to be defined during the virtual zone registration.
Since this is virtual thermal zone, this sensor requires
the thermal core to poll to monitor the trip temperatures.

The current interface provides three aggregation mechanism. It can
either find the,
1. maximum of all sensor readings
2. minimum of all sensor readings
3. weighted aggregation of sensor readings

Change-Id: I7f38a3612ff56de9e7a56a9a337da87823b65bbc
Signed-off-by: default avatarRam Chandrasekar <rkumbako@codeaurora.org>
parent 5915565f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment