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

Skip to content
Commit 353e241d authored by Junjie Wu's avatar Junjie Wu Committed by Saravana Kannan
Browse files

cpufreq: interactive_pro: Permanently cache tunable values



Userspace might change tunable values for a governor. Currently, if
all CPUs in a policy go offline, governor frees its tunable. This
wipes out all userspace modifications. Kernel drivers can call
cpu_up/down() directly and thus userspace won't have a chance to
restore the tunables.

Permanently save tunable struct in a per_cpu field so that we
preserve tunable values across hotplug, suspend/resume and governor
switch.

Change-Id: I5bc11d40e6bf649bdcb49f209468583d37a4c424
Signed-off-by: default avatarJunjie Wu <junjiew@codeaurora.org>
parent 116ee43c
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