Re: [PATCH v2 1/3] PM / EM: Fix inefficient state detection

From: Lukasz Luba
Date: Mon May 24 2021 - 08:41:14 EST




On 5/21/21 5:54 PM, Vincent Donnefort wrote:
Currently, a debug message is printed if an inefficient state is detected
in the Energy Model. Unfortunately, it won't detect if the first state is
inefficient or if two successive states are. Fix this behavior.

Signed-off-by: Vincent Donnefort <vincent.donnefort@xxxxxxx>

diff --git a/kernel/power/energy_model.c b/kernel/power/energy_model.c
index 0c620eb..c4871a8 100644
--- a/kernel/power/energy_model.c
+++ b/kernel/power/energy_model.c

Reviewed-by: Lukasz Luba <lukasz.luba@xxxxxxx>