Lines Matching refs:new_mask
2354 .new_mask = cpumask_of(rq->cpu), in migrate_disable_switch()
2395 .new_mask = &p->cpus_mask, in migrate_enable()
2702 p->cpus_ptr = ctx->new_mask; in set_cpus_allowed_common()
2706 cpumask_copy(&p->cpus_mask, ctx->new_mask); in set_cpus_allowed_common()
2707 p->nr_cpus_allowed = cpumask_weight(ctx->new_mask); in set_cpus_allowed_common()
2754 mm_set_cpus_allowed(p->mm, ctx->new_mask); in __do_set_cpus_allowed()
2766 void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask) in do_set_cpus_allowed() argument
2769 .new_mask = new_mask, in do_set_cpus_allowed()
3097 if (!kthread && !cpumask_subset(ctx->new_mask, cpu_allowed_mask)) { in __set_cpus_allowed_ptr_locked()
3112 if (cpumask_equal(&p->cpus_mask, ctx->new_mask)) { in __set_cpus_allowed_ptr_locked()
3120 !cpumask_test_cpu(task_cpu(p), ctx->new_mask))) { in __set_cpus_allowed_ptr_locked()
3131 dest_cpu = cpumask_any_and_distribute(cpu_valid_mask, ctx->new_mask); in __set_cpus_allowed_ptr_locked()
3168 cpumask_and(rq->scratch_mask, ctx->new_mask, p->user_cpus_ptr)) in __set_cpus_allowed_ptr()
3169 ctx->new_mask = rq->scratch_mask; in __set_cpus_allowed_ptr()
3174 int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask) in set_cpus_allowed_ptr() argument
3177 .new_mask = new_mask, in set_cpus_allowed_ptr()
3195 struct cpumask *new_mask, in restrict_cpus_allowed_ptr() argument
3199 .new_mask = new_mask, in restrict_cpus_allowed_ptr()
3218 if (!cpumask_and(new_mask, task_user_cpus(p), subset_mask)) { in restrict_cpus_allowed_ptr()
3238 cpumask_var_t new_mask; in force_compatible_cpus_allowed_ptr() local
3241 alloc_cpumask_var(&new_mask, GFP_KERNEL); in force_compatible_cpus_allowed_ptr()
3249 if (!cpumask_available(new_mask)) in force_compatible_cpus_allowed_ptr()
3252 if (!restrict_cpus_allowed_ptr(p, new_mask, override_mask)) in force_compatible_cpus_allowed_ptr()
3259 cpuset_cpus_allowed(p, new_mask); in force_compatible_cpus_allowed_ptr()
3260 override_mask = new_mask; in force_compatible_cpus_allowed_ptr()
3272 free_cpumask_var(new_mask); in force_compatible_cpus_allowed_ptr()
3285 .new_mask = task_user_cpus(p), in relax_compatible_cpus_allowed_ptr()
7843 .new_mask = cpumask_of(cpu), in init_idle()