Lines Matching refs:dest_cpu
2537 int dest_cpu; member
2563 struct task_struct *p, int dest_cpu) in __migrate_task() argument
2566 if (!is_cpu_allowed(p, dest_cpu)) in __migrate_task()
2569 rq = move_queued_task(rq, rf, p, dest_cpu); in __migrate_task()
2628 rq = __migrate_task(rq, &rf, p, arg->dest_cpu); in migration_cpu_stop()
2630 p->wake_cpu = arg->dest_cpu; in migration_cpu_stop()
2962 int dest_cpu, unsigned int flags) in affine_move_task() argument
3010 .dest_cpu = dest_cpu, in affine_move_task()
3026 pending->arg.dest_cpu = dest_cpu; in affine_move_task()
3073 rq = move_queued_task(rq, rf, p, dest_cpu); in affine_move_task()
3116 unsigned int dest_cpu; in __set_cpus_allowed_ptr_locked() local
3169 dest_cpu = cpumask_any_and_distribute(cpu_valid_mask, ctx->new_mask); in __set_cpus_allowed_ptr_locked()
3170 if (dest_cpu >= nr_cpu_ids) { in __set_cpus_allowed_ptr_locked()
3177 return affine_move_task(rq, p, rf, dest_cpu, ctx->flags); in __set_cpus_allowed_ptr_locked()
3556 int dest_cpu; in select_fallback_rq() local
3567 for_each_cpu(dest_cpu, nodemask) { in select_fallback_rq()
3568 if (is_cpu_allowed(p, dest_cpu)) in select_fallback_rq()
3569 return dest_cpu; in select_fallback_rq()
3575 for_each_cpu(dest_cpu, p->cpus_ptr) { in select_fallback_rq()
3576 if (!is_cpu_allowed(p, dest_cpu)) in select_fallback_rq()
3619 return dest_cpu; in select_fallback_rq()
5501 int dest_cpu; in sched_exec() local
5504 dest_cpu = p->sched_class->select_task_rq(p, task_cpu(p), WF_EXEC); in sched_exec()
5505 if (dest_cpu == smp_processor_id()) in sched_exec()
5508 if (unlikely(!cpu_active(dest_cpu))) in sched_exec()
5511 arg = (struct migration_arg){ p, dest_cpu }; in sched_exec()