Lines Matching refs:prev_cpu

795 static int select_idle_sibling(struct task_struct *p, int prev_cpu, int cpu);
6500 wake_affine_idle(int this_cpu, int prev_cpu, int sync) in wake_affine_idle() argument
6514 if (available_idle_cpu(this_cpu) && cpus_share_cache(this_cpu, prev_cpu)) in wake_affine_idle()
6515 return available_idle_cpu(prev_cpu) ? prev_cpu : this_cpu; in wake_affine_idle()
6520 if (available_idle_cpu(prev_cpu)) in wake_affine_idle()
6521 return prev_cpu; in wake_affine_idle()
6528 int this_cpu, int prev_cpu, int sync) in wake_affine_weight() argument
6549 this_eff_load *= capacity_of(prev_cpu); in wake_affine_weight()
6551 prev_eff_load = cpu_load(cpu_rq(prev_cpu)); in wake_affine_weight()
6570 int this_cpu, int prev_cpu, int sync) in wake_affine() argument
6575 target = wake_affine_idle(this_cpu, prev_cpu, sync); in wake_affine()
6578 target = wake_affine_weight(sd, p, this_cpu, prev_cpu, sync); in wake_affine()
6582 return prev_cpu; in wake_affine()
6653 int cpu, int prev_cpu, int sd_flag) in find_idlest_cpu() argument
6658 return prev_cpu; in find_idlest_cpu()
7215 struct task_struct *p, int prev_cpu) in eenv_task_busy_time() argument
7217 unsigned long busy_time, max_cap = arch_scale_cpu_capacity(prev_cpu); in eenv_task_busy_time()
7218 unsigned long irq = cpu_util_irq(cpu_rq(prev_cpu)); in eenv_task_busy_time()
7355 static int find_energy_efficient_cpu(struct task_struct *p, int prev_cpu) in find_energy_efficient_cpu() argument
7380 while (sd && !cpumask_test_cpu(prev_cpu, sched_domain_span(sd))) in find_energy_efficient_cpu()
7385 target = prev_cpu; in find_energy_efficient_cpu()
7391 eenv_task_busy_time(&eenv, p, prev_cpu); in find_energy_efficient_cpu()
7458 if (cpu == prev_cpu) { in find_energy_efficient_cpu()
7485 prev_cpu); in find_energy_efficient_cpu()
7555 select_task_rq_fair(struct task_struct *p, int prev_cpu, int wake_flags) in select_task_rq_fair() argument
7560 int new_cpu = prev_cpu; in select_task_rq_fair()
7573 new_cpu = find_energy_efficient_cpu(p, prev_cpu); in select_task_rq_fair()
7576 new_cpu = prev_cpu; in select_task_rq_fair()
7589 cpumask_test_cpu(prev_cpu, sched_domain_span(tmp))) { in select_task_rq_fair()
7590 if (cpu != prev_cpu) in select_task_rq_fair()
7591 new_cpu = wake_affine(tmp, p, cpu, prev_cpu, sync); in select_task_rq_fair()
7610 new_cpu = find_idlest_cpu(sd, p, cpu, prev_cpu, sd_flag); in select_task_rq_fair()
7613 new_cpu = select_idle_sibling(p, prev_cpu, new_cpu); in select_task_rq_fair()