Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1600646 > unrolled thread
| Started by | "Doug Smythies" <dsmythies@telus.net> |
|---|---|
| First post | 2017-03-14 17:10 +0100 |
| Last post | 2017-03-14 17:50 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
RE: [PATCH 07/14] cpufreq: intel_pstate: Skip unnecessary PID resets on init "Doug Smythies" <dsmythies@telus.net> - 2017-03-14 17:10 +0100
Re: [PATCH 07/14] cpufreq: intel_pstate: Skip unnecessary PID resets on init "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2017-03-14 17:50 +0100
| From | "Doug Smythies" <dsmythies@telus.net> |
|---|---|
| Date | 2017-03-14 17:10 +0100 |
| Subject | RE: [PATCH 07/14] cpufreq: intel_pstate: Skip unnecessary PID resets on init |
| Message-ID | <tkXbj-2zg-5@gated-at.bofh.it> |
On 2017.03.12 10:19 Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>
> PID controller parameters only need to be initialized if the
> get_target_pstate_use_performance() P-state selection routine
> is going to be used. It is not necessary to initialize them
> otherwise, so don't do that.
>
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> ---
> drivers/cpufreq/intel_pstate.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> Index: linux-pm/drivers/cpufreq/intel_pstate.c
> ===================================================================
> --- linux-pm.orig/drivers/cpufreq/intel_pstate.c
> +++ linux-pm/drivers/cpufreq/intel_pstate.c
> @@ -1974,12 +1974,12 @@ static int intel_pstate_init_cpu(unsigne
> intel_pstate_disable_ee(cpunum);
>
> intel_pstate_hwp_enable(cpu);
> + } else if (pstate_funcs.get_target_pstate == get_target_pstate_use_performance) {
> + intel_pstate_pid_reset(cpu);
> }
>
> intel_pstate_get_cpu_pstates(cpu);
>
> - intel_pstate_pid_reset(cpu);
> -
> pr_debug("controlling: cpu %d\n", cpunum);
>
> return 0;
Hi Rafael,
The patch has a long line and scripts/checkpatch.pl complains.
$ scripts/checkpatch.pl rjw_7_14.txt
WARNING: line over 80 characters
#27: FILE: drivers/cpufreq/intel_pstate.c:1977:
+ } else if (pstate_funcs.get_target_pstate == get_target_pstate_use_performance) {
total: 0 errors, 1 warnings, 14 lines checked
Myself, I don't care, and only found this by accident. I am just passing along
the information.
... Doug
[toc] | [next] | [standalone]
| From | "Rafael J. Wysocki" <rjw@rjwysocki.net> |
|---|---|
| Date | 2017-03-14 17:50 +0100 |
| Message-ID | <tkXO2-2Py-35@gated-at.bofh.it> |
| In reply to | #1600646 |
On Tuesday, March 14, 2017 09:06:52 AM Doug Smythies wrote:
> On 2017.03.12 10:19 Rafael J. Wysocki wrote:
>
> > From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> >
> > PID controller parameters only need to be initialized if the
> > get_target_pstate_use_performance() P-state selection routine
> > is going to be used. It is not necessary to initialize them
> > otherwise, so don't do that.
> >
> > Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> > ---
> > drivers/cpufreq/intel_pstate.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > Index: linux-pm/drivers/cpufreq/intel_pstate.c
> > ===================================================================
> > --- linux-pm.orig/drivers/cpufreq/intel_pstate.c
> > +++ linux-pm/drivers/cpufreq/intel_pstate.c
> > @@ -1974,12 +1974,12 @@ static int intel_pstate_init_cpu(unsigne
> > intel_pstate_disable_ee(cpunum);
> >
> > intel_pstate_hwp_enable(cpu);
> > + } else if (pstate_funcs.get_target_pstate == get_target_pstate_use_performance) {
> > + intel_pstate_pid_reset(cpu);
> > }
> >
> > intel_pstate_get_cpu_pstates(cpu);
> >
> > - intel_pstate_pid_reset(cpu);
> > -
> > pr_debug("controlling: cpu %d\n", cpunum);
> >
> > return 0;
>
> Hi Rafael,
>
> The patch has a long line and scripts/checkpatch.pl complains.
>
> $ scripts/checkpatch.pl rjw_7_14.txt
> WARNING: line over 80 characters
I just ignore these. I disagree with checkpatch.pl about this particular item. :-)
> #27: FILE: drivers/cpufreq/intel_pstate.c:1977:
> + } else if (pstate_funcs.get_target_pstate == get_target_pstate_use_performance) {
>
> total: 0 errors, 1 warnings, 14 lines checked
>
> Myself, I don't care, and only found this by accident. I am just passing along
> the information.
OK
Thanks,
Rafael
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web