]> git.baikalelectronics.ru Git - kernel.git/commit
thermal/cpu-cooling: Update thermal pressure in case of a maximum frequency capping
authorThara Gopinath <thara.gopinath@linaro.org>
Sat, 22 Feb 2020 00:52:12 +0000 (19:52 -0500)
committerIngo Molnar <mingo@kernel.org>
Fri, 6 Mar 2020 11:57:21 +0000 (12:57 +0100)
commit811c695a9cf915c3f4ebd0b64a7777a0f89a5143
treeb864c3702c89208a54b775d1e34123f6f3146bbc
parent2c73b488dba0376bc28eb7f1f63f43f245fde613
thermal/cpu-cooling: Update thermal pressure in case of a maximum frequency capping

Thermal governors can request for a CPU's maximum supported frequency to
be capped in case of an overheat event. This in turn means that the
maximum capacity available for tasks to run on the particular CPU is
reduced. Delta between the original maximum capacity and capped maximum
capacity is known as thermal pressure. Enable cpufreq cooling device to
update the thermal pressure in event of a capped maximum frequency.

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-9-thara.gopinath@linaro.org
drivers/thermal/cpufreq_cooling.c