Re: [RFCv5 PATCH 22/46] sched: Calculate energy consumption of sched_group

2015-09-17 Thread Morten Rasmussen
On Thu, Sep 03, 2015 at 01:19:23AM +0800, Leo Yan wrote: > On Tue, Jul 07, 2015 at 07:24:05PM +0100, Morten Rasmussen wrote: > > +/* > > + * sched_group_energy(): Returns absolute energy consumption of cpus > > belonging > > + * to the sched_group including shared resources shared only by members

Re: [RFCv5 PATCH 22/46] sched: Calculate energy consumption of sched_group

2015-09-02 Thread Leo Yan
On Tue, Jul 07, 2015 at 07:24:05PM +0100, Morten Rasmussen wrote: > For energy-aware load-balancing decisions it is necessary to know the > energy consumption estimates of groups of cpus. This patch introduces a > basic function, sched_group_energy(), which estimates the energy > consumption of the

Re: [RFCv5 PATCH 22/46] sched: Calculate energy consumption of sched_group

2015-08-14 Thread Morten Rasmussen
On Thu, Aug 13, 2015 at 05:34:17PM +0200, Peter Zijlstra wrote: > On Tue, Jul 07, 2015 at 07:24:05PM +0100, Morten Rasmussen wrote: > > +static unsigned int sched_group_energy(struct sched_group *sg_top) > > +{ > > + struct sched_domain *sd; > > + int cpu, total_energy = 0; > > + struct cpuma

Re: [RFCv5 PATCH 22/46] sched: Calculate energy consumption of sched_group

2015-08-13 Thread Peter Zijlstra
On Tue, Jul 07, 2015 at 07:24:05PM +0100, Morten Rasmussen wrote: > +static unsigned int sched_group_energy(struct sched_group *sg_top) > +{ > + struct sched_domain *sd; > + int cpu, total_energy = 0; > + struct cpumask visit_cpus; > + struct sched_group *sg; > + > + WARN_ON(!sg