]> git.baikalelectronics.ru Git - kernel.git/commit
sched/fair: Update cpu_capacity to reflect thermal pressure
authorThara Gopinath <thara.gopinath@linaro.org>
Sat, 22 Feb 2020 00:52:11 +0000 (19:52 -0500)
committerIngo Molnar <mingo@kernel.org>
Fri, 6 Mar 2020 11:57:20 +0000 (12:57 +0100)
commit2c73b488dba0376bc28eb7f1f63f43f245fde613
tree0d664bba0c4ee2e122db5078069fe32c15776cc6
parent3a6f34715c8ad83a887070cafbad1031c42e8115
sched/fair: Update cpu_capacity to reflect thermal pressure

cpu_capacity initially reflects the maximum possible capacity of a CPU.
Thermal pressure on a CPU means this maximum possible capacity is
unavailable due to thermal events. This patch subtracts the average
thermal pressure for a CPU from its maximum possible capacity so that
cpu_capacity reflects the remaining maximum capacity.

Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lkml.kernel.org/r/20200222005213.3873-8-thara.gopinath@linaro.org
kernel/sched/fair.c