Lines Matching refs:numa_group

1100 struct numa_group {  struct
1125 static struct numa_group *deref_task_numa_group(struct task_struct *p) in deref_task_numa_group()
1127 return rcu_dereference_check(p->numa_group, p == current || in deref_task_numa_group()
1131 static struct numa_group *deref_curr_numa_group(struct task_struct *p) in deref_curr_numa_group()
1133 return rcu_dereference_protected(p->numa_group, p == current); in deref_curr_numa_group()
1136 static inline unsigned long group_faults_priv(struct numa_group *ng);
1137 static inline unsigned long group_faults_shared(struct numa_group *ng);
1179 struct numa_group *ng; in task_scan_start()
1183 ng = rcu_dereference(p->numa_group); in task_scan_start()
1201 struct numa_group *ng; in task_scan_max()
1246 struct numa_group *ng; in task_numa_group_id()
1250 ng = rcu_dereference(p->numa_group); in task_numa_group_id()
1280 struct numa_group *ng = deref_task_numa_group(p); in group_faults()
1289 static inline unsigned long group_faults_cpu(struct numa_group *group, int nid) in group_faults_cpu()
1295 static inline unsigned long group_faults_priv(struct numa_group *ng) in group_faults_priv()
1307 static inline unsigned long group_faults_shared(struct numa_group *ng) in group_faults_shared()
1326 static bool numa_is_active_node(int nid, struct numa_group *ng) in numa_is_active_node()
1425 struct numa_group *ng = deref_task_numa_group(p); in group_weight()
1559 struct numa_group *ng = deref_curr_numa_group(p); in should_numa_migrate_memory()
1907 struct numa_group *cur_ng, *p_ng = deref_curr_numa_group(env->p); in task_numa_compare()
1965 cur_ng = rcu_dereference(cur->numa_group); in task_numa_compare()
2167 struct numa_group *ng; in task_numa_migrate()
2312 static void numa_group_count_active_nodes(struct numa_group *numa_group) in numa_group_count_active_nodes() argument
2318 faults = group_faults_cpu(numa_group, nid); in numa_group_count_active_nodes()
2324 faults = group_faults_cpu(numa_group, nid); in numa_group_count_active_nodes()
2329 numa_group->max_faults_cpu = max_faults; in numa_group_count_active_nodes()
2330 numa_group->active_nodes = active_nodes; in numa_group_count_active_nodes()
2548 struct numa_group *ng; in task_numa_placement()
2665 static inline int get_numa_group(struct numa_group *grp) in get_numa_group()
2670 static inline void put_numa_group(struct numa_group *grp) in put_numa_group()
2679 struct numa_group *grp, *my_grp; in task_numa_group()
2686 unsigned int size = sizeof(struct numa_group) + in task_numa_group()
2706 rcu_assign_pointer(p->numa_group, grp); in task_numa_group()
2715 grp = rcu_dereference(tsk->numa_group); in task_numa_group()
2771 rcu_assign_pointer(p->numa_group, grp); in task_numa_group()
2791 struct numa_group *grp = rcu_dereference_raw(p->numa_group); in task_numa_free()
2807 RCU_INIT_POINTER(p->numa_group, NULL); in task_numa_free()
2830 struct numa_group *ng; in task_numa_fault()
3090 RCU_INIT_POINTER(p->numa_group, NULL); in init_numa_balancing()
8152 struct numa_group *numa_group = rcu_dereference(p->numa_group); in migrate_degrades_locality() local
8185 if (numa_group) { in migrate_degrades_locality()
12373 struct numa_group *ng; in show_numa_stats()
12376 ng = rcu_dereference(p->numa_group); in show_numa_stats()