sonyxperiadev / device-sony-seagull

5 stars 17 forks source link

thermanager: correct thermal protection #17

Closed stellirin closed 8 years ago

stellirin commented 9 years ago

Thermanager monitors the temperature of the SoC and its environment, and throttles the CPU, GPU, Brightness, USB, to limit the heat output in a hot environment. However the config was trying to control the environment temperature by monitoring the temperature of the SoC. This is wrong.

The concequence of this was CPU throttling even under light loads as the SoC is inherently internally hot.

The config is rewritten using the actual values found in the Stock ROM. Some parts are renamed for clarity.

Signed-off-by: Adam Farden adam@farden.cz