Re: [PATCH V2] PM / EM: Micro optimization in em_cpu_energy

2020-11-24 Thread Rafael J. Wysocki
On 11/23/2020 11:29 AM, Pavankumar Kondeti wrote: 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 --- V2: Fixed the function name in the commit message. include/linux/energy_model.h |

[PATCH V2] PM / EM: Micro optimization in em_cpu_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 --- V2: Fixed the function name in the commit message. include/linux/energy_model.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/