diff options
author | Chen Ridong <chenridong@huawei.com> | 2025-09-17 06:04:52 +0000 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2025-09-17 08:37:31 -1000 |
commit | 27db8246004ad467ab36dedce847e24f9ca34b94 (patch) | |
tree | 14f5b1f506157a50eb42900d334dc39d244b7808 /rust/helpers/atomic.c | |
parent | c6366739804f836ac88474527430d3fd174580eb (diff) |
cpuset: introduce partition_cpus_change
Introduce the partition_cpus_change function to handle both regular CPU
set updates and exclusive CPU modifications, either of which may trigger
partition state changes. This generalized function will also be utilized
for exclusive CPU updates in subsequent patches.
With the introduction of compute_trialcs_excpus in a previous patch,
the trialcs->effective_xcpus field is now consistently computed and
maintained. Consequently, the legacy logic which assigned
**trialcs->allowed_cpus to a local 'xcpus' variable** when
trialcs->effective_xcpus was empty has been removed.
This removal is safe because when trialcs is not a partition member,
trialcs->effective_xcpus is now correctly populated with the intersection
of user_xcpus and the parent's effective_xcpus. This calculation inherently
covers the scenario previously handled by the removed code.
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