From: Kapileshwar Singh <kapileshwar.singh@arm.com>
To: Javi Merino <javi.merino@arm.com>, "Chen, Yu C" <yu.c.chen@intel.com>
Cc: "linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
Eduardo Valentin <edubezval@gmail.com>,
Daniel Kurtz <djkurtz@chromium.org>,
"Zhang, Rui" <rui.zhang@intel.com>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Sascha Hauer <s.hauer@pengutronix.de>,
Andrea Arcangeli <aarcange@redhat.com>
Subject: Re: [PATCH] thermal: power_allocator: Use temperature reading from tz
Date: Mon, 09 Nov 2015 11:47:59 +0000 [thread overview]
Message-ID: <564087EF.70501@arm.com> (raw)
In-Reply-To: <20151015105812.GB2639@e104805>
If there are no objections to this patch, can this be picked up for the
next RC?
Regards,
KP
On 15/10/15 11:58, Javi Merino wrote:
> On Wed, Oct 14, 2015 at 05:28:49AM +0000, Chen, Yu C wrote:
>>> -----Original Message-----
>>> From: linux-pm-owner@vger.kernel.org [mailto:linux-pm-
>>> owner@vger.kernel.org] On Behalf Of Kapileshwar Singh
>>> Sent: Tuesday, October 13, 2015 7:30 PM
>>> To: linux-pm@vger.kernel.org
>>> Cc: Kapileshwar Singh; Javi Merino; Eduardo Valentin; Daniel Kurtz; Zhang, Rui;
>>> Dmitry Torokhov; Sascha Hauer; Andrea Arcangeli
>>> Subject: [PATCH] thermal: power_allocator: Use temperature reading from
>>> tz
>>>
>>> All thermal governors use the temperature value stored in struct
>>> thermal_zone_device.
>>>
>>> thermal_zone_device->temperature
>>>
>>> power_allocator governor should not deviate from this and use the same.
>>>
>> Just my 2 cents:
>> I wonder if tz->temperature would vary during power_allocator_throttle?
>> because we don't have tz->lock to protect here.
> True, tz->temperature could vary but I don't think it's problematic.
> tz->temperature changing would mean that it doesn't pass this condition:
>
> if (!ret && (tz->temperature < switch_on_temp)) {
>
> and then, the temperature changes to a value below switch_on_temp
> before the call to allocate_power(). allocate_power() would still
> work and make an appropriate decision.
>
> All calls inside allocate_power() are protected by tz->lock, so the
> temperature used in pid_controller() is the same as the one reported
> to ftrace.
>
> In summary, I don't think it has any impact on functionality. Thanks
> a lot for the review,
> Javi
>
next prev parent reply other threads:[~2015-11-09 11:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-13 11:30 [PATCH] thermal: power_allocator: Use temperature reading from tz Kapileshwar Singh
2015-10-14 5:28 ` Chen, Yu C
2015-10-15 10:58 ` Javi Merino
2015-11-09 11:47 ` Kapileshwar Singh [this message]
2015-11-12 18:08 ` Eduardo Valentin
2015-10-15 10:47 ` Javi Merino
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=564087EF.70501@arm.com \
--to=kapileshwar.singh@arm.com \
--cc=aarcange@redhat.com \
--cc=djkurtz@chromium.org \
--cc=dmitry.torokhov@gmail.com \
--cc=edubezval@gmail.com \
--cc=javi.merino@arm.com \
--cc=linux-pm@vger.kernel.org \
--cc=rui.zhang@intel.com \
--cc=s.hauer@pengutronix.de \
--cc=yu.c.chen@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).