Lines Matching refs:dest_cpu
2506 int dest_cpu; member
2532 struct task_struct *p, int dest_cpu) in __migrate_task() argument
2535 if (!is_cpu_allowed(p, dest_cpu)) in __migrate_task()
2538 rq = move_queued_task(rq, rf, p, dest_cpu); in __migrate_task()
2597 rq = __migrate_task(rq, &rf, p, arg->dest_cpu); in migration_cpu_stop()
2599 p->wake_cpu = arg->dest_cpu; in migration_cpu_stop()
2922 int dest_cpu, unsigned int flags) in affine_move_task() argument
2971 .dest_cpu = dest_cpu, in affine_move_task()
2987 pending->arg.dest_cpu = dest_cpu; in affine_move_task()
3035 rq = move_queued_task(rq, rf, p, dest_cpu); in affine_move_task()
3078 unsigned int dest_cpu; in __set_cpus_allowed_ptr_locked() local
3131 dest_cpu = cpumask_any_and_distribute(cpu_valid_mask, ctx->new_mask); in __set_cpus_allowed_ptr_locked()
3132 if (dest_cpu >= nr_cpu_ids) { in __set_cpus_allowed_ptr_locked()
3139 return affine_move_task(rq, p, rf, dest_cpu, ctx->flags); in __set_cpus_allowed_ptr_locked()
3508 int dest_cpu; in select_fallback_rq() local
3519 for_each_cpu(dest_cpu, nodemask) { in select_fallback_rq()
3520 if (is_cpu_allowed(p, dest_cpu)) in select_fallback_rq()
3521 return dest_cpu; in select_fallback_rq()
3527 for_each_cpu(dest_cpu, p->cpus_ptr) { in select_fallback_rq()
3528 if (!is_cpu_allowed(p, dest_cpu)) in select_fallback_rq()
3571 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()