Lines Matching refs:prev_cpu
1034 static int select_idle_sibling(struct task_struct *p, int prev_cpu, int cpu);
7357 wake_affine_idle(int this_cpu, int prev_cpu, int sync) in wake_affine_idle() argument
7371 if (available_idle_cpu(this_cpu) && cpus_share_cache(this_cpu, prev_cpu)) in wake_affine_idle()
7372 return available_idle_cpu(prev_cpu) ? prev_cpu : this_cpu; in wake_affine_idle()
7377 if (available_idle_cpu(prev_cpu)) in wake_affine_idle()
7378 return prev_cpu; in wake_affine_idle()
7385 int this_cpu, int prev_cpu, int sync) in wake_affine_weight() argument
7406 this_eff_load *= capacity_of(prev_cpu); in wake_affine_weight()
7408 prev_eff_load = cpu_load(cpu_rq(prev_cpu)); in wake_affine_weight()
7427 int this_cpu, int prev_cpu, int sync) in wake_affine() argument
7432 target = wake_affine_idle(this_cpu, prev_cpu, sync); in wake_affine()
7435 target = wake_affine_weight(sd, p, this_cpu, prev_cpu, sync); in wake_affine()
7439 return prev_cpu; in wake_affine()
7510 int cpu, int prev_cpu, int sd_flag) in sched_balance_find_dst_cpu() argument
7515 return prev_cpu; in sched_balance_find_dst_cpu()
8230 struct task_struct *p, int prev_cpu) in eenv_task_busy_time() argument
8232 unsigned long busy_time, max_cap = arch_scale_cpu_capacity(prev_cpu); in eenv_task_busy_time()
8233 unsigned long irq = cpu_util_irq(cpu_rq(prev_cpu)); in eenv_task_busy_time()
8391 static int find_energy_efficient_cpu(struct task_struct *p, int prev_cpu) in find_energy_efficient_cpu() argument
8416 while (sd && !cpumask_test_cpu(prev_cpu, sched_domain_span(sd))) in find_energy_efficient_cpu()
8421 target = prev_cpu; in find_energy_efficient_cpu()
8427 eenv_task_busy_time(&eenv, p, prev_cpu); in find_energy_efficient_cpu()
8492 if (cpu == prev_cpu) { in find_energy_efficient_cpu()
8519 prev_cpu); in find_energy_efficient_cpu()
8589 select_task_rq_fair(struct task_struct *p, int prev_cpu, int wake_flags) in select_task_rq_fair() argument
8594 int new_cpu = prev_cpu; in select_task_rq_fair()
8611 new_cpu = find_energy_efficient_cpu(p, prev_cpu); in select_task_rq_fair()
8614 new_cpu = prev_cpu; in select_task_rq_fair()
8627 cpumask_test_cpu(prev_cpu, sched_domain_span(tmp))) { in select_task_rq_fair()
8628 if (cpu != prev_cpu) in select_task_rq_fair()
8629 new_cpu = wake_affine(tmp, p, cpu, prev_cpu, sync); in select_task_rq_fair()
8648 new_cpu = sched_balance_find_dst_cpu(sd, p, cpu, prev_cpu, sd_flag); in select_task_rq_fair()
8651 new_cpu = select_idle_sibling(p, prev_cpu, new_cpu); in select_task_rq_fair()