From: Eduardo Valentin <eduardo.valentin@ti.com>
To: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: eduardo.valentin@ti.com, rui.zhang@intel.com, linux-pm@vger.kernel.org
Subject: Re: [PATCH] ACPI/thermal : Remove zone disabled warning
Date: Fri, 27 Sep 2013 17:53:53 -0400 [thread overview]
Message-ID: <5245FE71.6020401@ti.com> (raw)
In-Reply-To: <1380126590-25809-1-git-send-email-srinivas.pandruvada@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1594 bytes --]
On 25-09-2013 12:29, Srinivas Pandruvada wrote:
> 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>
Although this is actually really under Rui's, I believe this patch makes
sense to me. So, you can add my acked.
Acked-by: Eduardo Valentin <eduardo.valentin@ti.com>
> ---
> drivers/acpi/thermal.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c
> index 6a03293..92bebb9 100644
> --- a/drivers/acpi/thermal.c
> +++ b/drivers/acpi/thermal.c
> @@ -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);
> }
>
> @@ -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) {
>
--
You have got to be excited about what you are doing. (L. Lamport)
Eduardo Valentin
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 295 bytes --]
prev parent reply other threads:[~2013-09-27 21:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-25 16:29 [PATCH] ACPI/thermal : Remove zone disabled warning Srinivas Pandruvada
2013-09-27 21:53 ` Eduardo Valentin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5245FE71.6020401@ti.com \
--to=eduardo.valentin@ti.com \
--cc=linux-pm@vger.kernel.org \
--cc=rui.zhang@intel.com \
--cc=srinivas.pandruvada@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.