Skip to content

Commit

Permalink
cgroup/cpuset: Miscellaneous cleanups & add helper functions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Waiman Long authored and Tejun Heo committed Sep 4, 2022
1 parent ec5fbdf commit 18065eb
Showing 1 changed file with 90 additions and 79 deletions.
Loading

0 comments on commit 18065eb

Please sign in to comment.