Re: [PATCH] PM / EM: Micro optimization in em_pd_energy

2020-11-23 Thread Pavan Kondeti
On Mon, Nov 23, 2020 at 10:28:39AM +, Quentin Perret wrote: > Hi Pavan, > > On Monday 23 Nov 2020 at 15:47:57 (+0530), Pavankumar Kondeti wrote: > > When the sum of the utilization of CPUs in a power domain is zero, > > s/power/performance > > > return the energy as 0 without doing any compu

Re: [PATCH] PM / EM: Micro optimization in em_pd_energy

2020-11-23 Thread Quentin Perret
Hi Pavan, On Monday 23 Nov 2020 at 15:47:57 (+0530), Pavankumar Kondeti wrote: > When the sum of the utilization of CPUs in a power domain is zero, s/power/performance > return the energy as 0 without doing any computations. > > Signed-off-by: Pavankumar Kondeti > --- > include/linux/energy_m

[PATCH] PM / EM: Micro optimization in em_pd_energy

2020-11-23 Thread Pavankumar Kondeti
When the sum of the utilization of CPUs in a power domain is zero, return the energy as 0 without doing any computations. Signed-off-by: Pavankumar Kondeti --- include/linux/energy_model.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/energy_model.h b/include/linux/energy_