aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorYu-Che Cheng <[email protected]>2025-02-19 07:07:48 +0000
committerRafael J. Wysocki <[email protected]>2025-02-21 17:13:10 +0000
commit4ecaa75771a75f2b78a431bf67dea165d19d72a6 (patch)
tree4aa08151ccce1cf8edbe065196558b402f99e323 /net/unix/sysctl_net_unix.c
parentLinux 6.14-rc3 (diff)
downloadkernel-4ecaa75771a75f2b78a431bf67dea165d19d72a6.tar.gz
kernel-4ecaa75771a75f2b78a431bf67dea165d19d72a6.zip
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 <[email protected]> Reviewed-by: Lukasz Luba <[email protected]> Link: https://patch.msgid.link/[email protected] [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions