Lines Matching defs:cpus_allowed
938 * Check whether the task is waking, we use this to synchronize ->cpus_allowed
2231 * ->cpus_allowed is protected by either TASK_WAKING or rq->lock held.
2240 if (cpumask_test_cpu(dest_cpu, &p->cpus_allowed))
2244 dest_cpu = cpumask_any_and(&p->cpus_allowed, cpu_active_mask);
2267 * The caller (fork, wakeup) owns TASK_WAKING, ->cpus_allowed is stable.
2276 * to rely on ttwu() to place the task on a valid ->cpus_allowed
2284 if (unlikely(!cpumask_test_cpu(cpu, &p->cpus_allowed) ||
2620 * - cpus_allowed can change in the fork path
2624 * without people poking at ->cpus_allowed.
3353 * select_task_rq() can race against ->cpus_allowed
3355 if (cpumask_test_cpu(dest_cpu, &p->cpus_allowed) &&
5009 cpumask_var_t cpus_allowed, new_mask;
5027 if (!alloc_cpumask_var(&cpus_allowed, GFP_KERNEL)) {
5043 cpuset_cpus_allowed(p, cpus_allowed);
5044 cpumask_and(new_mask, in_mask, cpus_allowed);
5049 cpuset_cpus_allowed(p, cpus_allowed);
5050 if (!cpumask_subset(new_mask, cpus_allowed)) {
5053 * update. Just reset the cpus_allowed to the
5054 * cpuset's cpus_allowed
5056 cpumask_copy(new_mask, cpus_allowed);
5063 free_cpumask_var(cpus_allowed);
5123 cpumask_and(mask, &p->cpus_allowed, cpu_online_mask);
5488 cpumask_copy(&idle->cpus_allowed, cpumask_of(cpu));
5612 * drop the rq->lock and still rely on ->cpus_allowed.
5629 !cpumask_equal(&p->cpus_allowed, new_mask))) {
5637 cpumask_copy(&p->cpus_allowed, new_mask);
5688 if (!cpumask_test_cpu(dest_cpu, &p->cpus_allowed))