]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ACPI / thermal: Use mode to enable/disable kernel thermal processing
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Tue, 15 Jan 2013 22:57:16 +0000 (23:57 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 25 Jan 2013 23:34:21 +0000 (00:34 +0100)
As per documentation, "mode" sysfs interface should be able to
enable/disable thermal processing in the kernel, so that user space
is able to take more control.

Currently, ACPI thermal driver is not following this setting, so
modify it to match the interface documentation.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/thermal.c

index f46c44048e44742332cddc7de1be15ce57ef0d4a..dc047336cc373c19ad5ed68e74cda2d60ca4c1e8 100644 (file)
@@ -531,6 +531,10 @@ static void acpi_thermal_check(void *data)
 {
        struct acpi_thermal *tz = data;
 
+       if (!tz->tz_enabled) {
+               pr_warn("thermal zone is disabled \n");
+               return;
+       }
        thermal_zone_device_update(tz->thermal_zone);
 }