diff options
| author | Yaxiong Tian <tianyaxiong@kylinos.cn> | 2025-12-30 14:15:34 +0800 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-01-08 16:52:31 +0100 |
| commit | 54b603f2db6b95495bc33a8f2bde80f044baff9a (patch) | |
| tree | f270323c8e5a52e9f55356a04872f2fc493c5bce /include/linux/stacktrace.h | |
| parent | 9ace4753a5202b02191d54e9fdf7f9e3d02b85eb (diff) | |
PM: EM: Fix incorrect description of the cost field in struct em_perf_state
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>
Diffstat (limited to 'include/linux/stacktrace.h')
0 files changed, 0 insertions, 0 deletions
