Lines Matching refs:target

1794  * be improved if the source tasks was migrated to the target dst_cpu taking
6193 int target = nr_cpumask_bits;
6196 target = wake_affine_idle(this_cpu, prev_cpu, sync);
6199 if (sched_feat(WA_WEIGHT) && target == nr_cpumask_bits) {
6200 target = wake_affine_weight(sd, p, this_cpu, prev_cpu, sync);
6204 if (target == nr_cpumask_bits) {
6210 return target;
6397 static int select_idle_core(struct task_struct *p, struct sched_domain *sd, int target)
6406 if (!test_idle_cores(target, false)) {
6415 for_each_cpu_wrap(core, cpus, target)
6436 set_idle_cores(target, 0);
6444 static int select_idle_smt(struct task_struct *p, struct sched_domain *sd, int target)
6452 for_each_cpu(cpu, cpu_smt_mask(target))
6470 static inline int select_idle_core(struct task_struct *p, struct sched_domain *sd, int target)
6475 static inline int select_idle_smt(struct task_struct *p, struct sched_domain *sd, int target)
6487 static int select_idle_cpu(struct task_struct *p, struct sched_domain *sd, int target)
6525 for_each_cpu_wrap(cpu, cpus, target)
6549 static int select_idle_capacity(struct task_struct *p, struct sched_domain *sd, int target)
6560 for_each_cpu_wrap(cpu, cpus, target)
6596 static int select_idle_sibling(struct task_struct *p, int prev, int target)
6611 if ((available_idle_cpu(target) || sched_idle_cpu(target)) && !cpu_isolated(target) &&
6612 asym_fits_capacity(task_util, target)) {
6613 return target;
6619 if (prev != target && cpus_share_cache(prev, target) &&
6620 ((available_idle_cpu(prev) || sched_idle_cpu(prev)) && !cpu_isolated(target) &&
6635 if (recent_used_cpu != prev && recent_used_cpu != target && cpus_share_cache(recent_used_cpu, target) &&
6643 sd = rcu_dereference(per_cpu(sd_asym_cpucapacity, target));
6645 i = select_idle_capacity(p, sd, target);
6646 return ((unsigned)i < nr_cpumask_bits) ? i : target;
6650 sd = rcu_dereference(per_cpu(sd_llc, target));
6652 return target;
6655 i = select_idle_core(p, sd, target);
6660 i = select_idle_cpu(p, sd, target);
6665 i = select_idle_smt(p, sd, target);
6670 return target;
6952 * find_energy_efficient_cpu(): Find most energy-efficient target CPU for the
7105 * select_task_rq_fair: Select target runqueue for the waking task in domains
7112 * Returns the target CPU number.
7150 * cpu is a valid SD_WAKE_AFFINE target.
10536 /* Search for an sd spanning us and the target CPU. */
10799 * This way we generate an IPI on the target CPU which