diff options
author | Thara Gopinath <thara.gopinath@linaro.org> | 2020-02-22 01:52:11 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-03-06 12:57:20 +0100 |
commit | 467b7d01c469dc6aa492c17d1f1d1952632728f1 (patch) | |
tree | 0d664bba0c4ee2e122db5078069fe32c15776cc6 /drivers/thermal/cpufreq_cooling.c | |
parent | sched/fair: Enable periodic update of average thermal pressure (diff) | |
download | linux-467b7d01c469dc6aa492c17d1f1d1952632728f1.tar.xz linux-467b7d01c469dc6aa492c17d1f1d1952632728f1.zip |
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
Diffstat (limited to 'drivers/thermal/cpufreq_cooling.c')
0 files changed, 0 insertions, 0 deletions