Lines Matching refs:new_mask

2349 		.new_mask  = cpumask_of(rq->cpu),  in migrate_disable_switch()
2390 .new_mask = &p->cpus_mask, in migrate_enable()
2697 p->cpus_ptr = ctx->new_mask; in set_cpus_allowed_common()
2701 cpumask_copy(&p->cpus_mask, ctx->new_mask); in set_cpus_allowed_common()
2702 p->nr_cpus_allowed = cpumask_weight(ctx->new_mask); in set_cpus_allowed_common()
2749 mm_set_cpus_allowed(p->mm, ctx->new_mask); in __do_set_cpus_allowed()
2761 void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask) in do_set_cpus_allowed() argument
2764 .new_mask = new_mask, in do_set_cpus_allowed()
3092 if (!kthread && !cpumask_subset(ctx->new_mask, cpu_allowed_mask)) { in __set_cpus_allowed_ptr_locked()
3107 if (cpumask_equal(&p->cpus_mask, ctx->new_mask)) { in __set_cpus_allowed_ptr_locked()
3115 !cpumask_test_cpu(task_cpu(p), ctx->new_mask))) { in __set_cpus_allowed_ptr_locked()
3126 dest_cpu = cpumask_any_and_distribute(cpu_valid_mask, ctx->new_mask); in __set_cpus_allowed_ptr_locked()
3163 cpumask_and(rq->scratch_mask, ctx->new_mask, p->user_cpus_ptr)) in __set_cpus_allowed_ptr()
3164 ctx->new_mask = rq->scratch_mask; in __set_cpus_allowed_ptr()
3169 int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask) in set_cpus_allowed_ptr() argument
3172 .new_mask = new_mask, in set_cpus_allowed_ptr()
3190 struct cpumask *new_mask, in restrict_cpus_allowed_ptr() argument
3194 .new_mask = new_mask, in restrict_cpus_allowed_ptr()
3213 if (!cpumask_and(new_mask, task_user_cpus(p), subset_mask)) { in restrict_cpus_allowed_ptr()
3233 cpumask_var_t new_mask; in force_compatible_cpus_allowed_ptr() local
3236 alloc_cpumask_var(&new_mask, GFP_KERNEL); in force_compatible_cpus_allowed_ptr()
3244 if (!cpumask_available(new_mask)) in force_compatible_cpus_allowed_ptr()
3247 if (!restrict_cpus_allowed_ptr(p, new_mask, override_mask)) in force_compatible_cpus_allowed_ptr()
3254 cpuset_cpus_allowed(p, new_mask); in force_compatible_cpus_allowed_ptr()
3255 override_mask = new_mask; in force_compatible_cpus_allowed_ptr()
3267 free_cpumask_var(new_mask); in force_compatible_cpus_allowed_ptr()
3280 .new_mask = task_user_cpus(p), in relax_compatible_cpus_allowed_ptr()
7792 .new_mask = cpumask_of(cpu), in init_idle()