OSDN Git Service

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)
commitf12e4f66ab6a31f17da386b682e5fec87ae46537
treeb864c3702c89208a54b775d1e34123f6f3146bbc
parent467b7d01c469dc6aa492c17d1f1d1952632728f1
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