From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: "Srivatsa S. Bhat" <srivatsa.bhat@linux.vnet.ibm.com>,
Viresh Kumar <viresh.kumar@linaro.org>
Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org,
linux-kernel@vger.kernel.org, arvind.chauhan@arm.com,
svaidy@linux.vnet.ibm.com, ego@linux.vnet.ibm.com, pavel@ucw.cz
Subject: Re: [PATCH Resend] cpufreq: governor: remove copy_prev_load from 'struct cpu_dbs_common_info'
Date: Mon, 09 Jun 2014 13:33:52 +0200 [thread overview]
Message-ID: <11428356.dfoumlK3pv@vostro.rjw.lan> (raw)
In-Reply-To: <53957A30.4030003@linux.vnet.ibm.com>
On Monday, June 09, 2014 02:41:12 PM Srivatsa S. Bhat wrote:
> On 06/09/2014 02:21 PM, Viresh Kumar wrote:
> > 'copy_prev_load' was recently added by commit: 18b46ab (cpufreq: governor: Be
> > friendly towards latency-sensitive bursty workloads).
> >
> > It actually is a bit redundant as we also have 'prev_load' which can store any
> > integer value and can be used instead of 'copy_prev_load' by setting it zero.
> >
> > True load can also turn out to be zero during long idle intervals (and hence the
> > actual value of 'prev_load' and the overloaded value can clash). However this is
> > not a problem because, if the true load was really zero in the previous
> > interval, it makes sense to evaluate the load afresh for the current interval
> > rather than copying the previous load.
> >
> > So, drop 'copy_prev_load' and use 'prev_load' instead.
> >
> > Update comments as well to make it more clear.
> >
> > There is another change here which was probably missed by Srivatsa during the
> > last version of updates he made. The unlikely in the 'if' statement was covering
> > only half of the condition and the whole line should actually come under it.
> >
> > Also checkpatch is made more silent as it was reporting this (--strict option):
> >
> > CHECK: Alignment should match open parenthesis
> > + if (unlikely(wall_time > (2 * sampling_rate) &&
> > + j_cdbs->prev_load)) {
> >
> > Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
> > ---
> > Resend: Updated comments/logs as suggested by Srivatsa.
> >
>
> Looks good!
>
> Reviewed-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Applied to bleeding-edge, thanks!
--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
prev parent reply other threads:[~2014-06-09 11:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-09 8:51 Viresh Kumar
2014-06-09 9:11 ` Srivatsa S. Bhat
2014-06-09 11:33 ` Rafael J. Wysocki [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=11428356.dfoumlK3pv@vostro.rjw.lan \
--to=rjw@rjwysocki.net \
--cc=arvind.chauhan@arm.com \
--cc=ego@linux.vnet.ibm.com \
--cc=linaro-kernel@lists.linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=srivatsa.bhat@linux.vnet.ibm.com \
--cc=svaidy@linux.vnet.ibm.com \
--cc=viresh.kumar@linaro.org \
/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
all inboxes | Powered by JetHome®