diff options
author | Yu-Che Cheng <giver@chromium.org> | 2025-02-19 10:07:48 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2025-02-21 20:13:10 +0300 |
commit | 4ecaa75771a75f2b78a431bf67dea165d19d72a6 (patch) | |
tree | 4aa08151ccce1cf8edbe065196558b402f99e323 /lib/zstd/common/debug.h | |
parent | 0ad2507d5d93f39619fc42372c347d6006b64319 (diff) | |
download | linux-4ecaa75771a75f2b78a431bf67dea165d19d72a6.tar.xz |
thermal: gov_power_allocator: Fix incorrect calculation in divvy_up_power()
divvy_up_power() should use weighted_req_power instead of req_power to
calculate granted_power. Otherwise, granted_power may be unexpected as
the denominator total_req_power is a weighted sum.
This is a mistake made during the previous refactor.
Replace req_power with weighted_req_power in divvy_up_power()
calculation.
Fixes: 912e97c67cc3 ("thermal: gov_power_allocator: Move memory allocation out of throttle()")
Signed-off-by: Yu-Che Cheng <giver@chromium.org>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://patch.msgid.link/20250219-fix-power-allocator-calc-v1-1-48b860291919@chromium.org
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'lib/zstd/common/debug.h')
0 files changed, 0 insertions, 0 deletions