sched: Rename do_set_cpus_allowed()

Hopefully saner naming.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Juri Lelli <juri.lelli@redhat.com>
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Vincent Guittot <vincent.guittot@linaro.org>
This commit is contained in:
Peter Zijlstra
2025-09-10 10:08:05 +02:00
parent abfc01077d
commit b079d93796
5 changed files with 14 additions and 14 deletions

View File

@@ -599,7 +599,7 @@ static void __kthread_bind_mask(struct task_struct *p, const struct cpumask *mas
}
scoped_guard (raw_spinlock_irqsave, &p->pi_lock)
do_set_cpus_allowed(p, mask);
set_cpus_allowed_force(p, mask);
/* It's safe because the task is inactive. */
p->flags |= PF_NO_SETAFFINITY;
@@ -880,7 +880,7 @@ int kthread_affine_preferred(struct task_struct *p, const struct cpumask *mask)
kthread_fetch_affinity(kthread, affinity);
scoped_guard (raw_spinlock_irqsave, &p->pi_lock)
do_set_cpus_allowed(p, affinity);
set_cpus_allowed_force(p, affinity);
mutex_unlock(&kthreads_hotplug_lock);
out: