summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYaxiong Tian <tianyaxiong@kylinos.cn>2025-12-30 14:15:34 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-01-23 11:21:15 +0100
commit754cfada1bbcbeeb922e54007c3c3aaaeeacf23e (patch)
tree02b71017a8dc19ee9389d22cd545af4da0b27141 /include
parent9a88b6c3c8695b708fd83523b3fe5a93e82ef7a4 (diff)
downloadlinux-754cfada1bbcbeeb922e54007c3c3aaaeeacf23e.tar.gz
linux-754cfada1bbcbeeb922e54007c3c3aaaeeacf23e.tar.bz2
linux-754cfada1bbcbeeb922e54007c3c3aaaeeacf23e.zip
PM: EM: Fix incorrect description of the cost field in struct em_perf_state
[ Upstream commit 54b603f2db6b95495bc33a8f2bde80f044baff9a ] Due to commit 1b600da51073 ("PM: EM: Optimize em_cpu_energy() and remove division"), the logic for energy consumption calculation has been modified. The actual calculation of cost is 10 * power * max_frequency / frequency instead of power * max_frequency / frequency. Therefore, the comment for cost has been updated to reflect the correct content. Fixes: 1b600da51073 ("PM: EM: Optimize em_cpu_energy() and remove division") Signed-off-by: Yaxiong Tian <tianyaxiong@kylinos.cn> Reviewed-by: Lukasz Luba <lukasz.luba@arm.com> [ rjw: Added Fixes: tag ] Link: https://patch.msgid.link/20251230061534.816894-1-tianyaxiong@kylinos.cn Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/energy_model.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/energy_model.h b/include/linux/energy_model.h
index 61d50571ad88..ce2db5447d22 100644
--- a/include/linux/energy_model.h
+++ b/include/linux/energy_model.h
@@ -18,7 +18,7 @@
* @power: The power consumed at this level (by 1 CPU or by a registered
* device). It can be a total power: static and dynamic.
* @cost: The cost coefficient associated with this level, used during
- * energy calculation. Equal to: power * max_frequency / frequency
+ * energy calculation. Equal to: 10 * power * max_frequency / frequency
* @flags: see "em_perf_state flags" description below.
*/
struct em_perf_state {