Lines Matching refs:best_task
1986 struct task_struct *best_task; member
2119 if (env->best_task) in task_numa_assign()
2120 put_task_struct(env->best_task); in task_numa_assign()
2124 env->best_task = p; in task_numa_assign()
2215 if (env->best_task && in task_numa_compare()
2216 env->best_task->numa_preferred_nid == env->src_nid && in task_numa_compare()
2286 if (env->best_task && cur->numa_preferred_nid == env->src_nid && in task_numa_compare()
2287 env->best_task->numa_preferred_nid != env->src_nid) { in task_numa_compare()
2348 if (!maymove && env->best_task && in task_numa_compare()
2349 env->best_task->numa_preferred_nid == env->src_nid) { in task_numa_compare()
2426 .best_task = NULL, in task_numa_migrate()
2534 if (env.best_task == NULL) { in task_numa_migrate()
2542 ret = migrate_swap(p, env.best_task, env.best_cpu, env.src_cpu); in task_numa_migrate()
2546 trace_sched_stick_numa(p, env.src_cpu, env.best_task, env.best_cpu); in task_numa_migrate()
2547 put_task_struct(env.best_task); in task_numa_migrate()