mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Eduardo Valentin <[email protected]> Signed-off-by: Zhang Rui <[email protected]>
This commit is contained in:
parent
106339ab7e
commit
8772e185f1
1 changed files with 11 additions and 0 deletions
|
|
@ -286,6 +286,17 @@ static void thermal_unregister_governors(void)
|
|||
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,
|
||||
int delay)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue