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

Skip to content
Commit bef69267 authored by Riley Andrews's avatar Riley Andrews Committed by Pavankumar Kondeti
Browse files

ANDROID: cpuset: Make cpusets restore on hotplug



This deliberately changes the behavior of the per-cpuset
cpus file to not be effected by hotplug. When a cpu is offlined,
it will be removed from the cpuset/cpus file. When a cpu is onlined,
if the cpuset originally requested that that cpu was part of the cpuset,
that cpu will be restored to the cpuset. The cpus files still
have to be hierachical, but the ranges no longer have to be out of
the currently online cpus, just the physically present cpus.

Bug: 120444281
Change-Id: I22cdf33e7d312117bcefba1aeb0125e1ada289a9
Signed-off-by: default avatarDmitry Shmidt <dimitrysh@google.com>
[AmitP: Refactored original changes to align with upstream commit
        201af4c0 ("cgroup: move cgroup files under kernel/cgroup/")]
Signed-off-by: default avatarAmit Pundir <amit.pundir@linaro.org>
Git-commit: ea7de80972bb2243f64b8db99c07eca49518b197
Git-repo: https://android.googlesource.com/kernel/common


[pkondeti@codeaurora.org: Ported to 5.4 kernel]
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent 0afd6cbe
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