Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7a840264 authored by Rohit Gupta's avatar Rohit Gupta Committed by Jonathan Avila
Browse files

cpufreq: schedutil: Cache tunables on governor exit



Currently when all the related CPUs from a policy go offline or the
governor is switched, cpufreq framework calls sugov_exit() that
frees the governor tunables. When any of the related CPUs comes back
online or governor is switched back to schedutil sugov_init() gets
called which allocates a fresh set of tunables that are set to
default values. This can cause the userspace settings to those
tunables to be lost across governor switches or when an entire
cluster is hotplugged out.
To prevent this, save the tunable values on governor exit. Restore
these values to the newly allocated tunables on governor init.

Change-Id: I671d4d0e1a4e63e948bfddb0005367df33c0c249
Signed-off-by: default avatarRohit Gupta <rohgup@codeaurora.org>
[avilaj@codeaurora.org: Modify to handle new tunables on 4.19]
Signed-off-by: default avatarJonathan Avila <avilaj@codeaurora.org>
parent 2cdb1a13
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment