aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-11-14 00:42:31 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-11-14 00:42:31 -0500
commit549608eadb31eac5d579ed70a21ac722bdf72861 (patch)
tree0ecc4b03ed9feca47b7b5beb2f84d27f0c6f9d8d /drivers/acpi
parent2f466d33f5f60542d3d82c0477de5863b22c94b9 (diff)
parent86e0a0bdf81c2dfa2a5a258dbb52f49c40ebc197 (diff)
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
Pull thermal management updates from Zhang Rui: "This time we only have a few changes as there are no soc thermal changes from Eduardo. The only big change is the introduction of TMON, a tool to help visualize, tune, and test the thermal subsystem. The rest is mostly cleanups and fixes all over. Specifics: - introduce TMON, a tool base on thermal sysfs I/F. It can be used to visualize, tune and test the thermal subsystem. - fix a zone/cooling device binding problem, when both thermal zone bind parameters and .bind() callback are available" * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux: tools/thermal: Introduce tmon, a tool for thermal subsystem thermal: Fix binding problem when there is thermal zone params thermal: cpu_cooling: fix return value check in cpufreq_cooling_register() Thermal: Check for validity before doing kfree thermal/intel_powerclamp: Add newer CPU models Thermal: Tidy up error handling in powerclamp_init thermal: Kconfig: cosmetic fixes ACPI/thermal : Remove zone disabled warning typo in drivers/thermal/Kconfig: lpatform instead of platform
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/thermal.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c
index e600b5dbfcb6..0d9f46b5ae6d 100644
--- a/drivers/acpi/thermal.c
+++ b/drivers/acpi/thermal.c
@@ -514,10 +514,9 @@ static void acpi_thermal_check(void *data)
514{ 514{
515 struct acpi_thermal *tz = data; 515 struct acpi_thermal *tz = data;
516 516
517 if (!tz->tz_enabled) { 517 if (!tz->tz_enabled)
518 pr_warn("thermal zone is disabled \n");
519 return; 518 return;
520 } 519
521 thermal_zone_device_update(tz->thermal_zone); 520 thermal_zone_device_update(tz->thermal_zone);
522} 521}
523 522
@@ -569,9 +568,10 @@ static int thermal_set_mode(struct thermal_zone_device *thermal,
569 */ 568 */
570 if (mode == THERMAL_DEVICE_ENABLED) 569 if (mode == THERMAL_DEVICE_ENABLED)
571 enable = 1; 570 enable = 1;
572 else if (mode == THERMAL_DEVICE_DISABLED) 571 else if (mode == THERMAL_DEVICE_DISABLED) {
573 enable = 0; 572 enable = 0;
574 else 573 pr_warn("thermal zone will be disabled\n");
574 } else
575 return -EINVAL; 575 return -EINVAL;
576 576
577 if (enable != tz->tz_enabled) { 577 if (enable != tz->tz_enabled) {