Re: [PATCH][RFC] sched: cpufreq: Fix long idle judgement logic in load calculation

2018-06-07 Thread Yu Chen
Hi Viresh, thanks for the comment, On Thu, Jun 07, 2018 at 10:15:43AM +0530, Viresh Kumar wrote: > On 07-06-18, 11:17, Chen Yu wrote: > > diff --git a/drivers/cpufreq/cpufreq_governor.c > > b/drivers/cpufreq/cpufreq_governor.c > > index 871bf9c..9792c80 100644 > > --- a/drivers/cpufreq/cpufreq_gov

Re: [PATCH][RFC] sched: cpufreq: Fix long idle judgement logic in load calculation

2018-06-06 Thread Viresh Kumar
On 07-06-18, 11:17, Chen Yu wrote: > diff --git a/drivers/cpufreq/cpufreq_governor.c > b/drivers/cpufreq/cpufreq_governor.c > index 871bf9c..9792c80 100644 > --- a/drivers/cpufreq/cpufreq_governor.c > +++ b/drivers/cpufreq/cpufreq_governor.c > @@ -165,7 +165,7 @@ unsigned int dbs_update(struct cpu

[PATCH][RFC] sched: cpufreq: Fix long idle judgement logic in load calculation

2018-06-06 Thread Chen Yu
According to current code implementation, detecting the long idle period is done by checking if the interval between two adjacent utilization update handers is long enough. Although this mechanism can detect if the idle period is long enough (no utilization hooks invoked during idle period), it mig