summaryrefslogtreecommitdiff
path: root/rust/helpers/atomic.c
diff options
context:
space:
mode:
authorChen Ridong <chenridong@huawei.com>2025-09-17 06:04:49 +0000
committerTejun Heo <tj@kernel.org>2025-09-17 08:37:30 -1000
commit8daab66eb329ed2fe7e2922c3739dfa53dcf4694 (patch)
tree5bee00121fc160142120da0d2514f2140ad794c2 /rust/helpers/atomic.c
parentc5866c9a007deb92717fc0b94ac47b47291748be (diff)
cpuset: introduce cpus_excl_conflict and mems_excl_conflict helpers
This patch adds cpus_excl_conflict() and mems_excl_conflict() helper functions to improve code readability and maintainability. The exclusive conflict checking follows these rules: 1. If either cpuset has the 'exclusive' flag set, their user_xcpus must not have any overlap. 2. If neither cpuset has the 'exclusive' flag set, their 'cpuset.cpus.exclusive' (only for v2) values must not intersect. 3. The 'cpuset.cpus' of one cpuset must not form a subset of another cpuset's 'cpuset.cpus.exclusive'. Signed-off-by: Chen Ridong <chenridong@huawei.com> Reviewed-by: Waiman Long <longman@redhat.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'rust/helpers/atomic.c')
0 files changed, 0 insertions, 0 deletions