Skip to content

Commit

Permalink
ACPI / thermal: Use mode to enable/disable kernel thermal processing
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Srinivas Pandruvada authored and Rafael J. Wysocki committed Jan 25, 2013
1 parent 7e3cf24 commit ca4e713
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/acpi/thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit ca4e713

Please sign in to comment.