lkml.org 
[lkml]   [2017]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH v1 5/8] sched/cpufreq_schedutil: always consider all CPUs when deciding next freq
On 11/07/17 18:17, Peter Zijlstra wrote:
> On Wed, Jul 05, 2017 at 09:59:02AM +0100, Juri Lelli wrote:
> > delta_ns = time - j_sg_cpu->last_update;
> > if (delta_ns > TICK_NSEC) {
> > j_sg_cpu->iowait_boost = 0;
> > - continue;
> > + j_sg_cpu->util_cfs = 0;
>
> this is slighly confusing. Is this because we might not 'continue' with
> the new code?
>

This is because, after TICK_NSEC, we only want to discard CFS
contribution and (yes) continue (so don't take into account
j_sg_cpu contribution) if DEADLINE contribution is zero as well.

> > + if (j_sg_cpu->util_dl == 0)
> > + continue;
> > }
> > +

With this change we might not continue if some DEADLINE utilization is
present for j_sg_cpu.

> > if (j_sg_cpu->flags & SCHED_CPUFREQ_RT)
> > return policy->cpuinfo.max_freq;
> >
> > --
> > 2.11.0
> >

\
 
 \ /
  Last update: 2017-07-11 19:19    [W:0.104 / U:0.636 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site