Re: [PATCH v7 11/14] sched/fair: Introduce an energy estimation helper function

2018-10-04 Thread Quentin Perret
Hi Peter, On Thursday 04 Oct 2018 at 10:34:57 (+0200), Peter Zijlstra wrote: > On Wed, Sep 12, 2018 at 10:13:06AM +0100, Quentin Perret wrote: > > +static unsigned long cpu_util_next(int cpu, struct task_struct *p, int > > dst_cpu) > > +{ > > + struct cfs_rq *cfs_rq = &cpu_rq(cpu)->cfs; > > +

Re: [PATCH v7 11/14] sched/fair: Introduce an energy estimation helper function

2018-10-04 Thread Peter Zijlstra
On Wed, Sep 12, 2018 at 10:13:06AM +0100, Quentin Perret wrote: > +static unsigned long cpu_util_next(int cpu, struct task_struct *p, int > dst_cpu) > +{ > + struct cfs_rq *cfs_rq = &cpu_rq(cpu)->cfs; > + unsigned long util_est, util = READ_ONCE(cfs_rq->avg.util_avg); > + > + /* > +