Commit 8772e185 authored by Eduardo Valentin's avatar Eduardo Valentin Committed by Zhang Rui

thermal: core: add a comment describing the main update loop

Simply marking the main update loop section and adding a
comment describing it.

Cc: Zhang Rui <rui.zhang@intel.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
parent 106339ab
...@@ -286,6 +286,17 @@ static void thermal_unregister_governors(void) ...@@ -286,6 +286,17 @@ static void thermal_unregister_governors(void)
thermal_gov_power_allocator_unregister(); thermal_gov_power_allocator_unregister();
} }
/*
* Zone update section: main control loop applied to each zone while monitoring
*
* in polling mode. The monitoring is done using a workqueue.
* Same update may be done on a zone by calling thermal_zone_device_update().
*
* An update means:
* - Non-critical trips will invoke the governor responsible for that zone;
* - Hot trips will produce a notification to userspace;
* - Critical trip point will cause a system shutdown.
*/
static void thermal_zone_device_set_polling(struct thermal_zone_device *tz, static void thermal_zone_device_set_polling(struct thermal_zone_device *tz,
int delay) int delay)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment