diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-08-26 18:32:36 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-09-05 12:33:21 +0200 |
commit | 3c3ee53df47605476b9ff86a5abc6057b72be89c (patch) | |
tree | f7a32da54a4eedbb2f43aea950d9460df79b82ea /tools/perf/scripts/python/gecko.py | |
parent | fcfacd544b74ee76de6fd8642340345669da407b (diff) |
thermal: core: Check passive delay in monitor_thermal_zone()
The only case in which thermal_zone_device_set_polling() is called
with its second argument equal to zero is when passive cooling is
under way and passive_delay_jiffies is 0, which only happens when
the given thermal zone is not polled at all.
If monitor_thermal_zone() is modified to check passive_delay_jiffies
directly, the check of the thermal_zone_device_set_polling() second
argument against 0 can be dropped and a passive_delay check can be
dropped from thermal_zone_device_register_with_trips(), so change the
code accordingly.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/2004353.PYKUYFuaPT@rjwysocki.net
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions