diff options
author | Lukasz Luba | 2021-11-09 19:57:12 +0000 |
---|---|---|
committer | Viresh Kumar | 2021-11-23 15:10:26 +0530 |
commit | 93d9e6f93e1586fcc97498c764be2e8c8401f4bd (patch) | |
tree | 903bf5de3956d4eb30a048adace5d8fab8160d93 /mm/memory.c | |
parent | 5168b1be09055436cc9ff34509bda1719023baa8 (diff) |
cpufreq: qcom-cpufreq-hw: Update offline CPUs per-cpu thermal pressure
The thermal pressure signal gives information to the scheduler about
reduced CPU capacity due to thermal. It is based on a value stored in
a per-cpu 'thermal_pressure' variable. The online CPUs will get the
new value there, while the offline won't. Unfortunately, when the CPU
is back online, the value read from per-cpu variable might be wrong
(stale data). This might affect the scheduler decisions, since it
sees the CPU capacity differently than what is actually available.
Fix it by making sure that all online+offline CPUs would get the
proper value in their per-cpu variable when there is throttling
or throttling is removed.
Fixes: 275157b367f479 ("cpufreq: qcom-cpufreq-hw: Add dcvs interrupt support")
Reviewed-by: Thara Gopinath <thara.gopinath@linaro.org>
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'mm/memory.c')
0 files changed, 0 insertions, 0 deletions