Lines Matching refs:cur
1922 struct task_struct *cur; in task_numa_compare() local
1933 cur = rcu_dereference(dst_rq->curr); in task_numa_compare()
1934 if (cur && ((cur->flags & PF_EXITING) || is_idle_task(cur))) in task_numa_compare()
1935 cur = NULL; in task_numa_compare()
1941 if (cur == env->p) { in task_numa_compare()
1946 if (!cur) { in task_numa_compare()
1954 if (!cpumask_test_cpu(env->src_cpu, cur->cpus_ptr)) in task_numa_compare()
1963 cur->numa_preferred_nid != env->src_nid) { in task_numa_compare()
1977 cur_ng = rcu_dereference(cur->numa_group); in task_numa_compare()
1988 imp = taskimp + task_weight(cur, env->src_nid, dist) - in task_numa_compare()
1989 task_weight(cur, env->dst_nid, dist); in task_numa_compare()
2002 imp += group_weight(cur, env->src_nid, dist) - in task_numa_compare()
2003 group_weight(cur, env->dst_nid, dist); in task_numa_compare()
2005 imp += task_weight(cur, env->src_nid, dist) - in task_numa_compare()
2006 task_weight(cur, env->dst_nid, dist); in task_numa_compare()
2010 if (cur->numa_preferred_nid == env->dst_nid) in task_numa_compare()
2019 if (cur->numa_preferred_nid == env->src_nid) in task_numa_compare()
2024 cur = NULL; in task_numa_compare()
2032 if (env->best_task && cur->numa_preferred_nid == env->src_nid && in task_numa_compare()
2049 load = task_h_load(env->p) - task_h_load(cur); in task_numa_compare()
2061 if (!cur) { in task_numa_compare()
2080 task_numa_assign(env, cur, imp); in task_numa_compare()
2087 if (maymove && !cur && env->best_cpu >= 0 && idle_cpu(env->best_cpu)) in task_numa_compare()