PM: EM: fix wrong utilization estimation in em_cpu_energy()
authorVincent Guittot <vincent.guittot@linaro.org>
Thu, 4 Apr 2024 10:42:00 +0000 (12:42 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 4 Apr 2024 17:27:53 +0000 (19:27 +0200)
commit8130b05c559d1aa83d0c8971b422ba0da18ef24a
treef18a8a4b48202f7ff73ca7f2839361c4de5a48cf
parent39cd87c4eb2b893354f3b850f916353f2658ae6f
PM: EM: fix wrong utilization estimation in em_cpu_energy()

Commit 1b600da51073 ("PM: EM: Optimize em_cpu_energy() and remove division")
has added back map_util_perf() in em_cpu_energy() computation which has
been removed with the rework of scheduler/cpufreq interface.
This is wrong because sugov_effective_cpu_perf() already takes care of
mapping the utilization to a performance level.

Fixes: 1b600da51073 ("PM: EM: Optimize em_cpu_energy() and remove division")
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/linux/energy_model.h