diff options
author | Frans Pop <elendil@planet.nl> | 2009-10-26 08:39:04 +0100 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-11-06 00:19:01 +0100 |
commit | 3767cb54ac718eb049d2a29f7a575ab923550ba5 (patch) | |
tree | dbb0cbe06c7523a3096ac11b31f7e8f123e220d3 /drivers/thermal | |
parent | thermal: Only set passive_delay for forced_passive cooling (diff) | |
download | linux-3767cb54ac718eb049d2a29f7a575ab923550ba5.tar.xz linux-3767cb54ac718eb049d2a29f7a575ab923550ba5.zip |
thermal: disable polling if passive_delay and polling_delay are both unset
Otherwise polling will continue for the thermal zone even when
it is no longer needed, for example because forced passive cooling
was disabled.
Signed-off-by: Frans Pop <elendil@planet.nl>
Acked-by: Matthew Garrett <mjg@redhat.com>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/thermal')
-rw-r--r-- | drivers/thermal/thermal_sys.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c index 663c2fdba775..3bc72ea57e09 100644 --- a/drivers/thermal/thermal_sys.c +++ b/drivers/thermal/thermal_sys.c @@ -1019,6 +1019,8 @@ void thermal_zone_device_update(struct thermal_zone_device *tz) thermal_zone_device_set_polling(tz, tz->passive_delay); else if (tz->polling_delay) thermal_zone_device_set_polling(tz, tz->polling_delay); + else + thermal_zone_device_set_polling(tz, 0); mutex_unlock(&tz->lock); } EXPORT_SYMBOL(thermal_zone_device_update); |