OSDN Git Service

cgroup/cpuset: Miscellaneous cleanups & add helper functions
authorWaiman Long <longman@redhat.com>
Thu, 1 Sep 2022 20:57:37 +0000 (16:57 -0400)
committerTejun Heo <tj@kernel.org>
Sun, 4 Sep 2022 20:47:27 +0000 (10:47 -1000)
commit18065ebe9b3359b163324f3fb36f7edeb73503e2
tree27ba7ab788c84e4fc3da15fdc82cc3f6004bd448
parentec5fbdfb99d18482619ac42605cb80fbb56068ee
cgroup/cpuset: Miscellaneous cleanups & add helper functions

The partition root state (PRS) macro names do not currently match the
external names. Change them to match the external names and add helper
functions to read or change the state.

Shorten the cpuset argument of update_parent_subparts_cpumask() to cs
to match other cpuset functions.

Remove the new_prs argument from notify_partition_change() as the
cs->partition_root_state has already been set to new_prs before it
is called.

There is no functional change.

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