PM: EM: Fix inefficient states detection
stable inclusion from stable-5.10.80 commit 1b2d422a261b8dcf6168e2ac1fd5bd872f8d6aa9 bugzilla: 185821 https://gitee.com/openeuler/kernel/issues/I4L7CG Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=1b2d422a261b8dcf6168e2ac1fd5bd872f8d6aa9 -------------------------------- [ Upstream commit aa1a4326 ] 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. Fixes: 27871f7a (PM: Introduce an Energy Model management framework) Signed-off-by: NVincent Donnefort <vincent.donnefort@arm.com> Reviewed-by: NQuentin Perret <qperret@google.com> Reviewed-by: NLukasz Luba <lukasz.luba@arm.com> Reviewed-by: NMatthias Kaehlcke <mka@chromium.org> Acked-by: NViresh Kumar <viresh.kumar@linaro.org> Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Reviewed-by: NWeilong Chen <chenweilong@huawei.com> Acked-by: NWeilong Chen <chenweilong@huawei.com> Signed-off-by: NChen Jun <chenjun102@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录