Commit e994d713a73716b54085a092b267099e40aa5513
Committed by
Zhang Rui
1 parent
ece238fe0a
Exists in
master
and in
16 other branches
ACPI/thermal : Remove zone disabled warning
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>
Showing 1 changed file with 5 additions and 5 deletions Side-by-side Diff
drivers/acpi/thermal.c
... | ... | @@ -515,10 +515,9 @@ |
515 | 515 | { |
516 | 516 | struct acpi_thermal *tz = data; |
517 | 517 | |
518 | - if (!tz->tz_enabled) { | |
519 | - pr_warn("thermal zone is disabled \n"); | |
518 | + if (!tz->tz_enabled) | |
520 | 519 | return; |
521 | - } | |
520 | + | |
522 | 521 | thermal_zone_device_update(tz->thermal_zone); |
523 | 522 | } |
524 | 523 | |
525 | 524 | |
... | ... | @@ -570,9 +569,10 @@ |
570 | 569 | */ |
571 | 570 | if (mode == THERMAL_DEVICE_ENABLED) |
572 | 571 | enable = 1; |
573 | - else if (mode == THERMAL_DEVICE_DISABLED) | |
572 | + else if (mode == THERMAL_DEVICE_DISABLED) { | |
574 | 573 | enable = 0; |
575 | - else | |
574 | + pr_warn("thermal zone will be disabled\n"); | |
575 | + } else | |
576 | 576 | return -EINVAL; |
577 | 577 | |
578 | 578 | if (enable != tz->tz_enabled) { |