• Home
  • Raw
  • Download

Lines Matching refs:best_cpu

1734 	int best_cpu;  member
1834 if (env->best_cpu != env->dst_cpu && xchg(&rq->numa_migrate_on, 1)) { in task_numa_assign()
1840 if (cpu == env->best_cpu || !idle_cpu(cpu) || in task_numa_assign()
1860 if (env->best_cpu != -1 && env->best_cpu != env->dst_cpu) { in task_numa_assign()
1861 rq = cpu_rq(env->best_cpu); in task_numa_assign()
1872 env->best_cpu = env->dst_cpu; in task_numa_assign()
2072 if (!idle_cpu(cpu) && env->best_cpu >= 0 && in task_numa_compare()
2073 idle_cpu(env->best_cpu)) { in task_numa_compare()
2074 cpu = env->best_cpu; in task_numa_compare()
2087 if (maymove && !cur && env->best_cpu >= 0 && idle_cpu(env->best_cpu)) in task_numa_compare()
2174 .best_cpu = -1, in task_numa_migrate()
2230 if (env.best_cpu == -1 || (ng && ng->active_nodes > 1)) { in task_numa_migrate()
2264 if (env.best_cpu == -1) in task_numa_migrate()
2267 nid = cpu_to_node(env.best_cpu); in task_numa_migrate()
2274 if (env.best_cpu == -1) { in task_numa_migrate()
2279 best_rq = cpu_rq(env.best_cpu); in task_numa_migrate()
2281 ret = migrate_task_to(p, env.best_cpu); in task_numa_migrate()
2284 trace_sched_stick_numa(p, env.src_cpu, NULL, env.best_cpu); in task_numa_migrate()
2288 ret = migrate_swap(p, env.best_task, env.best_cpu, env.src_cpu); in task_numa_migrate()
2292 trace_sched_stick_numa(p, env.src_cpu, env.best_task, env.best_cpu); in task_numa_migrate()
6884 int cpu, best_cpu = -1; in select_idle_capacity() local
6919 best_cpu = cpu; in select_idle_capacity()
6924 return best_cpu; in select_idle_capacity()