Home
last modified time | relevance | path

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

/kernel/sched/
Dcpudeadline.c176 int old_idx, new_cpu; in cpudl_clear() local
191 new_cpu = cp->elements[cp->size - 1].cpu; in cpudl_clear()
193 cp->elements[old_idx].cpu = new_cpu; in cpudl_clear()
195 cp->elements[new_cpu].idx = old_idx; in cpudl_clear()
Dfair.c2955 static void update_scan_period(struct task_struct *p, int new_cpu) in update_scan_period() argument
2958 int dst_nid = cpu_to_node(new_cpu); in update_scan_period()
3002 static inline void update_scan_period(struct task_struct *p, int new_cpu) in update_scan_period() argument
6186 int new_cpu = cpu; in find_idlest_cpu() local
6214 new_cpu = find_idlest_group_cpu(group, p, cpu); in find_idlest_cpu()
6215 if (new_cpu == cpu) { in find_idlest_cpu()
6222 cpu = new_cpu; in find_idlest_cpu()
6233 return new_cpu; in find_idlest_cpu()
6858 int new_cpu = INT_MAX; in find_energy_efficient_cpu() local
6861 trace_android_rvh_find_energy_efficient_cpu(p, prev_cpu, sync, &new_cpu); in find_energy_efficient_cpu()
[all …]
Dcore.c1837 struct task_struct *p, int new_cpu) in move_queued_task() argument
1848 trace_android_rvh_migrate_queued_task(rq, rf, p, new_cpu, &detached); in move_queued_task()
1853 set_task_cpu(p, new_cpu); in move_queued_task()
1857 rq = cpu_rq(new_cpu); in move_queued_task()
1860 BUG_ON(task_cpu(p) != new_cpu); in move_queued_task()
2155 void set_task_cpu(struct task_struct *p, unsigned int new_cpu) in set_task_cpu() argument
2191 WARN_ON_ONCE(!cpu_online(new_cpu)); in set_task_cpu()
2194 trace_sched_migrate_task(p, new_cpu); in set_task_cpu()
2196 if (task_cpu(p) != new_cpu) { in set_task_cpu()
2198 p->sched_class->migrate_task_rq(p, new_cpu); in set_task_cpu()
[all …]
Dsched.h1858 void (*migrate_task_rq)(struct task_struct *p, int new_cpu);
Ddeadline.c1727 static void migrate_task_rq_dl(struct task_struct *p, int new_cpu __maybe_unused) in migrate_task_rq_dl()
/kernel/
Dworkqueue.c1393 int new_cpu; in wq_select_unbound_cpu() local
1406 new_cpu = __this_cpu_read(wq_rr_cpu_last); in wq_select_unbound_cpu()
1407 new_cpu = cpumask_next_and(new_cpu, wq_unbound_cpumask, cpu_online_mask); in wq_select_unbound_cpu()
1408 if (unlikely(new_cpu >= nr_cpu_ids)) { in wq_select_unbound_cpu()
1409 new_cpu = cpumask_first_and(wq_unbound_cpumask, cpu_online_mask); in wq_select_unbound_cpu()
1410 if (unlikely(new_cpu >= nr_cpu_ids)) in wq_select_unbound_cpu()
1413 __this_cpu_write(wq_rr_cpu_last, new_cpu); in wq_select_unbound_cpu()
1415 return new_cpu; in wq_select_unbound_cpu()