Hi Rafael,
On 07/09/2023 13:23, Rafael J. Wysocki wrote:
So one more question here: Why is this a property of a thermal zone
and not the property of the whole system?
Presumably, on a system where the platform integrator prefers to
reboot on critical temperature, it would be necessary to add this
property to every thermal zone.
Also, what if this property has different values for different thermal
zones?
I got your point and I can make the 'critical-action' property to be
valid
for the whole thermal system.
Originally, I have been doing like this:
thermal-zones {
cpu-thermal {
critical-action = "reboot";
polling-delay-passive = <250>;
polling-delay = <2000>;
thermal-sensors = <&tmu>;
trips {
cpu_alert0: trip0 {
temperature = <85000>;
hysteresis = <2000>;
type = "passive";
};
I can change it to be:
thermal-zones {
critical-action = "reboot";
cpu-thermal {
polling-delay-passive = <250>;
polling-delay = <2000>;
thermal-sensors = <&tmu>;
trips {
cpu_alert0: trip0 {
temperature = <85000>;
hysteresis = <2000>;
type = "passive";
};
Thanks,
Fabio Estevam