cpuset: Make cpusets restore on hotplug
authorRiley Andrews <riandrews@google.com>
Tue, 6 Sep 2016 22:16:25 +0000 (15:16 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 14 Sep 2016 09:14:29 +0000 (14:44 +0530)
commit9400d22ae17aaebf301d92adc8401ff346d5d5b4
tree5ec5931d018dd6e56a7bba39cecd6aed3481e318
parente08e07aec28acf28b60e572a623ce7339765b2e5
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.

Change-Id: I22cdf33e7d312117bcefba1aeb0125e1ada289a9
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
kernel/cpuset.c