Lines Matching refs:pos
87 static struct cgroup *cgroup_rstat_cpu_pop_updated(struct cgroup *pos, in cgroup_rstat_cpu_pop_updated() argument
92 if (pos == root) in cgroup_rstat_cpu_pop_updated()
99 if (!pos) in cgroup_rstat_cpu_pop_updated()
100 pos = root; in cgroup_rstat_cpu_pop_updated()
102 pos = cgroup_parent(pos); in cgroup_rstat_cpu_pop_updated()
106 rstatc = cgroup_rstat_cpu(pos, cpu); in cgroup_rstat_cpu_pop_updated()
107 if (rstatc->updated_children == pos) in cgroup_rstat_cpu_pop_updated()
109 pos = rstatc->updated_children; in cgroup_rstat_cpu_pop_updated()
119 struct cgroup *parent = cgroup_parent(pos); in cgroup_rstat_cpu_pop_updated()
131 if (*nextp == pos) in cgroup_rstat_cpu_pop_updated()
140 return pos; in cgroup_rstat_cpu_pop_updated()
158 struct cgroup *pos = NULL; in cgroup_rstat_flush_locked() local
161 while ((pos = cgroup_rstat_cpu_pop_updated(pos, cgrp, cpu))) { in cgroup_rstat_flush_locked()
164 cgroup_base_stat_flush(pos, cpu); in cgroup_rstat_flush_locked()
167 list_for_each_entry_rcu(css, &pos->rstat_css_list, in cgroup_rstat_flush_locked()