* [PATCH] cpufreq: ondemand: fix wrong delay sampling rate
@ 2012-11-23 13:12 Fabio Baltieri
2012-11-23 13:53 ` Viresh Kumar
0 siblings, 1 reply; 4+ messages in thread
From: Fabio Baltieri @ 2012-11-23 13:12 UTC (permalink / raw)
To: Rafael J. Wysocki, cpufreq, linux-pm
Cc: linux-kernel, Fabio Baltieri, Viresh Kumar
Restore the correct delay value for ondemand's od_dbs_timer, as it was
changed erroneously in 83f0e55.
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
---
drivers/cpufreq/cpufreq_ondemand.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c
index bdaab92..cca3e9f 100644
--- a/drivers/cpufreq/cpufreq_ondemand.c
+++ b/drivers/cpufreq/cpufreq_ondemand.c
@@ -234,7 +234,8 @@ static void od_dbs_timer(struct work_struct *work)
dbs_info->sample_type = OD_SUB_SAMPLE;
delay = dbs_info->freq_hi_jiffies;
} else {
- delay = delay_for_sampling_rate(dbs_info->rate_mult);
+ delay = delay_for_sampling_rate(od_tuners.sampling_rate
+ * dbs_info->rate_mult);
}
}
--
1.7.12.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] cpufreq: ondemand: fix wrong delay sampling rate
2012-11-23 13:12 [PATCH] cpufreq: ondemand: fix wrong delay sampling rate Fabio Baltieri
@ 2012-11-23 13:53 ` Viresh Kumar
2012-11-23 19:57 ` Fabio Baltieri
0 siblings, 1 reply; 4+ messages in thread
From: Viresh Kumar @ 2012-11-23 13:53 UTC (permalink / raw)
To: Fabio Baltieri; +Cc: Rafael J. Wysocki, cpufreq, linux-pm, linux-kernel
On 23 November 2012 18:42, Fabio Baltieri <fabio.baltieri@linaro.org> wrote:
> Restore the correct delay value for ondemand's od_dbs_timer, as it was
> changed erroneously in 83f0e55.
>
> Cc: Viresh Kumar <viresh.kumar@linaro.org>
> Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
> ---
> drivers/cpufreq/cpufreq_ondemand.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c
> index bdaab92..cca3e9f 100644
> --- a/drivers/cpufreq/cpufreq_ondemand.c
> +++ b/drivers/cpufreq/cpufreq_ondemand.c
> @@ -234,7 +234,8 @@ static void od_dbs_timer(struct work_struct *work)
> dbs_info->sample_type = OD_SUB_SAMPLE;
> delay = dbs_info->freq_hi_jiffies;
> } else {
> - delay = delay_for_sampling_rate(dbs_info->rate_mult);
> + delay = delay_for_sampling_rate(od_tuners.sampling_rate
> + * dbs_info->rate_mult);
So sorry for my poor code :(
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] cpufreq: ondemand: fix wrong delay sampling rate
2012-11-23 13:53 ` Viresh Kumar
@ 2012-11-23 19:57 ` Fabio Baltieri
2012-11-23 20:36 ` Rafael J. Wysocki
0 siblings, 1 reply; 4+ messages in thread
From: Fabio Baltieri @ 2012-11-23 19:57 UTC (permalink / raw)
To: Viresh Kumar; +Cc: Rafael J. Wysocki, cpufreq, linux-pm, linux-kernel
On Fri, Nov 23, 2012 at 07:23:28PM +0530, Viresh Kumar wrote:
> On 23 November 2012 18:42, Fabio Baltieri <fabio.baltieri@linaro.org> wrote:
> > Restore the correct delay value for ondemand's od_dbs_timer, as it was
> > changed erroneously in 83f0e55.
> >
> > Cc: Viresh Kumar <viresh.kumar@linaro.org>
> > Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
> > ---
> > drivers/cpufreq/cpufreq_ondemand.c | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c
> > index bdaab92..cca3e9f 100644
> > --- a/drivers/cpufreq/cpufreq_ondemand.c
> > +++ b/drivers/cpufreq/cpufreq_ondemand.c
> > @@ -234,7 +234,8 @@ static void od_dbs_timer(struct work_struct *work)
> > dbs_info->sample_type = OD_SUB_SAMPLE;
> > delay = dbs_info->freq_hi_jiffies;
> > } else {
> > - delay = delay_for_sampling_rate(dbs_info->rate_mult);
> > + delay = delay_for_sampling_rate(od_tuners.sampling_rate
> > + * dbs_info->rate_mult);
>
> So sorry for my poor code :(
Actually I think that the new code is much better structured, and the
patch was so big that I'll be surprised if this would be the only bug!
My problem is that I had to rewrite a patch based on the old code almost
line-by-line but... these are the rules of the game!
> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Thanks,
Fabio
--
Fabio Baltieri
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] cpufreq: ondemand: fix wrong delay sampling rate
2012-11-23 19:57 ` Fabio Baltieri
@ 2012-11-23 20:36 ` Rafael J. Wysocki
0 siblings, 0 replies; 4+ messages in thread
From: Rafael J. Wysocki @ 2012-11-23 20:36 UTC (permalink / raw)
To: Fabio Baltieri; +Cc: Viresh Kumar, cpufreq, linux-pm, linux-kernel
On Friday, November 23, 2012 08:57:02 PM Fabio Baltieri wrote:
> On Fri, Nov 23, 2012 at 07:23:28PM +0530, Viresh Kumar wrote:
> > On 23 November 2012 18:42, Fabio Baltieri <fabio.baltieri@linaro.org> wrote:
> > > Restore the correct delay value for ondemand's od_dbs_timer, as it was
> > > changed erroneously in 83f0e55.
> > >
> > > Cc: Viresh Kumar <viresh.kumar@linaro.org>
> > > Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
> > > ---
> > > drivers/cpufreq/cpufreq_ondemand.c | 3 ++-
> > > 1 file changed, 2 insertions(+), 1 deletion(-)
> > >
> > > diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c
> > > index bdaab92..cca3e9f 100644
> > > --- a/drivers/cpufreq/cpufreq_ondemand.c
> > > +++ b/drivers/cpufreq/cpufreq_ondemand.c
> > > @@ -234,7 +234,8 @@ static void od_dbs_timer(struct work_struct *work)
> > > dbs_info->sample_type = OD_SUB_SAMPLE;
> > > delay = dbs_info->freq_hi_jiffies;
> > > } else {
> > > - delay = delay_for_sampling_rate(dbs_info->rate_mult);
> > > + delay = delay_for_sampling_rate(od_tuners.sampling_rate
> > > + * dbs_info->rate_mult);
> >
> > So sorry for my poor code :(
>
> Actually I think that the new code is much better structured, and the
> patch was so big that I'll be surprised if this would be the only bug!
>
> My problem is that I had to rewrite a patch based on the old code almost
> line-by-line but... these are the rules of the game!
>
> > Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Applied to linux-pm.git/linux-next as v3.8 material.
Thanks,
Rafael
--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-11-23 20:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-23 13:12 [PATCH] cpufreq: ondemand: fix wrong delay sampling rate Fabio Baltieri
2012-11-23 13:53 ` Viresh Kumar
2012-11-23 19:57 ` Fabio Baltieri
2012-11-23 20:36 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox