From: Borislav Petkov <bp@alien8.de>
To: Jacob Shin <jacob.shin@amd.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>,
cpufreq@vger.kernel.org, linux-pm@vger.kernel.org,
linux-kernel@vger.kernel.org,
Viresh Kumar <viresh.kumar@linaro.org>
Subject: Re: [PATCH V2 1/2] cpufreq: ondemand: allow custom powersave_bias_target function to be registered
Date: Tue, 2 Apr 2013 15:31:14 +0200 [thread overview]
Message-ID: <20130402133114.GC5488@pd.tnic> (raw)
In-Reply-To: <1364495057-14939-2-git-send-email-jacob.shin@amd.com>
On Thu, Mar 28, 2013 at 01:24:16PM -0500, Jacob Shin wrote:
> @@ -206,8 +209,8 @@ static void od_check_cpu(int cpu, unsigned int load_freq)
> __cpufreq_driver_target(policy, freq_next,
> CPUFREQ_RELATION_L);
> } else {
> - int freq = powersave_bias_target(policy, freq_next,
> - CPUFREQ_RELATION_L);
> + int freq = od_ops.powersave_bias_target(policy,
> + freq_next, CPUFREQ_RELATION_L);
> __cpufreq_driver_target(policy, freq,
> CPUFREQ_RELATION_L);
Btw, one more thing: you can simplify this code a bit, while you're at
it:
if (!od_tuners->powersave_bias) {
__cpufreq_driver_target(policy, freq_next,
CPUFREQ_RELATION_L);
return;
}
freq_next = od_ops.powersave_bias_target(policy, freq_next, CPUFREQ_RELATION_L);
__cpufreq_driver_target(policy, freq, CPUFREQ_RELATION_L);
}
and drop the local "int freq" too.
Thanks.
--
Regards/Gruss,
Boris.
Sent from a fat crate under my desk. Formatting is fine.
--
next prev parent reply other threads:[~2013-04-02 13:31 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-28 18:24 [PATCH V2 0/2] cpufreq: ondemand: add AMD specific powersave bias Jacob Shin
2013-03-28 18:24 ` Jacob Shin
2013-03-28 18:24 ` [PATCH V2 1/2] cpufreq: ondemand: allow custom powersave_bias_target function to be registered Jacob Shin
2013-03-28 18:24 ` Jacob Shin
2013-04-02 12:43 ` Borislav Petkov
2013-04-02 14:35 ` Jacob Shin
2013-04-02 14:35 ` Jacob Shin
2013-04-02 13:31 ` Borislav Petkov [this message]
2013-03-28 18:24 ` [PATCH V2 2/2] cpufreq: AMD "frequency sensitivity feedback" powersave bias for ondemand governor Jacob Shin
2013-03-28 18:24 ` Jacob Shin
2013-04-02 11:40 ` Thomas Renninger
2013-04-02 12:49 ` Borislav Petkov
2013-04-02 14:34 ` Jacob Shin
2013-04-02 14:34 ` Jacob Shin
2013-04-02 13:42 ` Borislav Petkov
2013-04-02 17:18 ` Jacob Shin
2013-04-02 17:18 ` Jacob Shin
2013-03-29 2:48 ` [PATCH V2 0/2] cpufreq: ondemand: add AMD specific powersave bias Viresh Kumar
2013-04-01 19:38 ` Jacob Shin
2013-04-01 19:38 ` Jacob Shin
2013-04-01 20:43 ` Rafael J. Wysocki
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=20130402133114.GC5488@pd.tnic \
--to=bp@alien8.de \
--cc=cpufreq@vger.kernel.org \
--cc=jacob.shin@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rjw@sisk.pl \
--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 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.