Lines Matching refs:new_cpu
3541 static void update_scan_period(struct task_struct *p, int new_cpu)
3544 int dst_nid = cpu_to_node(new_cpu);
3588 static inline void update_scan_period(struct task_struct *p, int new_cpu)
7244 int new_cpu = cpu;
7272 new_cpu = find_idlest_group_cpu(group, p, cpu);
7273 if (new_cpu == cpu) {
7279 /* Now try balancing at a lower domain level of 'new_cpu': */
7280 cpu = new_cpu;
7291 return new_cpu;
8266 int new_cpu = prev_cpu;
8289 new_cpu = find_energy_efficient_cpu(p, prev_cpu);
8290 if (new_cpu >= 0)
8291 return new_cpu;
8292 new_cpu = prev_cpu;
8307 new_cpu = wake_affine(tmp, p, cpu, prev_cpu, sync);
8326 new_cpu = find_idlest_cpu(sd, p, cpu, prev_cpu, sd_flag);
8329 new_cpu = select_idle_sibling(p, prev_cpu, new_cpu);
8333 return new_cpu;
8341 static void migrate_task_rq_fair(struct task_struct *p, int new_cpu)
8364 update_scan_period(p, new_cpu);
12846 kick_active_balance(struct rq *rq, struct task_struct *p, int new_cpu)
12851 if (cpu_of(rq) == new_cpu)
12858 rq->push_cpu = new_cpu;
12871 int new_cpu = -1;
12893 new_cpu = find_rtg_cpu(p);
12895 if (new_cpu != -1 && need_down_migrate &&
12896 cpumask_test_cpu(new_cpu, rtg_target) &&
12897 idle_cpu(new_cpu))
12900 if (new_cpu != -1 &&
12901 capacity_orig_of(new_cpu) > capacity_orig_of(prev_cpu))
12908 new_cpu = find_energy_efficient_cpu(p, prev_cpu);
12911 if (new_cpu == -1 ||
12912 capacity_orig_of(new_cpu) <= capacity_orig_of(prev_cpu))
12917 active_balance = kick_active_balance(rq, p, new_cpu);
12919 mark_reserved(new_cpu);
12925 clear_reserved(new_cpu);
12927 wake_up_if_idle(new_cpu);