Skip to content

Commit

Permalink
ACPI/thermal : Remove zone disabled warning
Browse files Browse the repository at this point in the history
Once thermal zone is disabled to move thermal control to user space,
too many warnings printed in logs. Remove pr_warn from this path,
instead warn when user mode issues request to disable thermal zone.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Acked-by: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
  • Loading branch information
Srinivas Pandruvada authored and Zhang Rui committed Sep 30, 2013
1 parent ece238f commit e994d71
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/acpi/thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,10 +515,9 @@ static void acpi_thermal_check(void *data)
{
struct acpi_thermal *tz = data;

if (!tz->tz_enabled) {
pr_warn("thermal zone is disabled \n");
if (!tz->tz_enabled)
return;
}

thermal_zone_device_update(tz->thermal_zone);
}

Expand Down Expand Up @@ -570,9 +569,10 @@ static int thermal_set_mode(struct thermal_zone_device *thermal,
*/
if (mode == THERMAL_DEVICE_ENABLED)
enable = 1;
else if (mode == THERMAL_DEVICE_DISABLED)
else if (mode == THERMAL_DEVICE_DISABLED) {
enable = 0;
else
pr_warn("thermal zone will be disabled\n");
} else
return -EINVAL;

if (enable != tz->tz_enabled) {
Expand Down

0 comments on commit e994d71

Please sign in to comment.