summaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
authorEduardo Valentin <edubezval@gmail.com>2016-11-08 00:09:15 -0500
committerZhang Rui <rui.zhang@intel.com>2016-11-22 21:06:12 -0500
commit8772e185f191bf1280445dfe6b4f9c59e725c473 (patch)
tree5df291a2c44f4055a69c89742372004845739883 /drivers/thermal
parent106339ab7e98da3e51c109926af6f394dcc06812 (diff)
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: Eduardo Valentin <edubezval@gmail.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/thermal_core.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c
index 884235f216bd..bf108db6ae5d 100644
--- a/drivers/thermal/thermal_core.c
+++ b/drivers/thermal/thermal_core.c
@@ -286,6 +286,17 @@ static void thermal_unregister_governors(void)
286 thermal_gov_power_allocator_unregister(); 286 thermal_gov_power_allocator_unregister();
287} 287}
288 288
289/*
290 * Zone update section: main control loop applied to each zone while monitoring
291 *
292 * in polling mode. The monitoring is done using a workqueue.
293 * Same update may be done on a zone by calling thermal_zone_device_update().
294 *
295 * An update means:
296 * - Non-critical trips will invoke the governor responsible for that zone;
297 * - Hot trips will produce a notification to userspace;
298 * - Critical trip point will cause a system shutdown.
299 */
289static void thermal_zone_device_set_polling(struct thermal_zone_device *tz, 300static void thermal_zone_device_set_polling(struct thermal_zone_device *tz,
290 int delay) 301 int delay)
291{ 302{