Home
last modified time | relevance | path

Searched refs:new_cpu (Results 1 – 6 of 6) sorted by relevance

/kernel/sched/
Dcpudeadline.c152 int old_idx, new_cpu; in cpudl_clear() local
167 new_cpu = cp->elements[cp->size - 1].cpu; in cpudl_clear()
169 cp->elements[old_idx].cpu = new_cpu; in cpudl_clear()
171 cp->elements[new_cpu].idx = old_idx; in cpudl_clear()
Dfair.c2703 static void update_scan_period(struct task_struct *p, int new_cpu) in update_scan_period() argument
2706 int dst_nid = cpu_to_node(new_cpu); in update_scan_period()
2750 static inline void update_scan_period(struct task_struct *p, int new_cpu) in update_scan_period() argument
5765 int new_cpu = cpu; in find_idlest_cpu() local
5793 new_cpu = find_idlest_group_cpu(group, p, cpu); in find_idlest_cpu()
5794 if (new_cpu == cpu) { in find_idlest_cpu()
5801 cpu = new_cpu; in find_idlest_cpu()
5812 return new_cpu; in find_idlest_cpu()
6513 int new_cpu = prev_cpu; in select_task_rq_fair() local
6521 new_cpu = find_energy_efficient_cpu(p, prev_cpu, sync); in select_task_rq_fair()
[all …]
Dcore.c1490 struct task_struct *p, int new_cpu) in move_queued_task() argument
1496 set_task_cpu(p, new_cpu); in move_queued_task()
1499 rq = cpu_rq(new_cpu); in move_queued_task()
1502 BUG_ON(task_cpu(p) != new_cpu); in move_queued_task()
1707 void set_task_cpu(struct task_struct *p, unsigned int new_cpu) in set_task_cpu() argument
1743 WARN_ON_ONCE(!cpu_online(new_cpu)); in set_task_cpu()
1746 trace_sched_migrate_task(p, new_cpu); in set_task_cpu()
1748 if (task_cpu(p) != new_cpu) { in set_task_cpu()
1750 p->sched_class->migrate_task_rq(p, new_cpu); in set_task_cpu()
1756 __set_task_cpu(p, new_cpu); in set_task_cpu()
Dsched.h1746 void (*migrate_task_rq)(struct task_struct *p, int new_cpu);
Ddeadline.c1642 static void migrate_task_rq_dl(struct task_struct *p, int new_cpu __maybe_unused) in migrate_task_rq_dl()
/kernel/
Dworkqueue.c1370 int new_cpu; in wq_select_unbound_cpu() local
1383 new_cpu = __this_cpu_read(wq_rr_cpu_last); in wq_select_unbound_cpu()
1384 new_cpu = cpumask_next_and(new_cpu, wq_unbound_cpumask, cpu_online_mask); in wq_select_unbound_cpu()
1385 if (unlikely(new_cpu >= nr_cpu_ids)) { in wq_select_unbound_cpu()
1386 new_cpu = cpumask_first_and(wq_unbound_cpumask, cpu_online_mask); in wq_select_unbound_cpu()
1387 if (unlikely(new_cpu >= nr_cpu_ids)) in wq_select_unbound_cpu()
1390 __this_cpu_write(wq_rr_cpu_last, new_cpu); in wq_select_unbound_cpu()
1392 return new_cpu; in wq_select_unbound_cpu()