]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cgroup/cpuset: Account for boot time isolated CPUs
authorWaiman Long <longman@redhat.com>
Tue, 20 Aug 2024 19:55:35 +0000 (15:55 -0400)
committerTejun Heo <tj@kernel.org>
Fri, 30 Aug 2024 19:23:39 +0000 (09:23 -1000)
commitc188f33c864e3dba49a1ad0dc9fddf2f49ac42ae
tree18986282bdeb8bab13a236e192e00c0a49b7d133
parent3c2acae88844e7423a50b5cbe0a2c9d430fcd20c
cgroup/cpuset: Account for boot time isolated CPUs

With the "isolcpus" boot command line parameter, we are able to
create isolated CPUs at boot time. These isolated CPUs aren't fully
accounted for in the cpuset code. For instance, the root cgroup's
"cpuset.cpus.isolated" control file does not include the boot time
isolated CPUs. Fix that by looking for pre-isolated CPUs at init time.

The prstate_housekeeping_conflict() function does check the
HK_TYPE_DOMAIN housekeeping cpumask to make sure that CPUs outside of it
can only be used in isolated partition. Given the fact that we are going
to make housekeeping cpumasks dynamic, the current check may not be right
anymore. Save the boot time HK_TYPE_DOMAIN cpumask and check against
it instead of the upcoming dynamic HK_TYPE_DOMAIN housekeeping cpumask.

Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cpuset.c