Lines Matching refs:group
168 static int get_sched_policy_from_group(const std::string& group, SchedPolicy* policy) { in get_sched_policy_from_group() argument
169 if (group.empty()) { in get_sched_policy_from_group()
171 } else if (group == "foreground") { in get_sched_policy_from_group()
173 } else if (group == "system-background") { in get_sched_policy_from_group()
175 } else if (group == "background") { in get_sched_policy_from_group()
177 } else if (group == "top-app") { in get_sched_policy_from_group()
179 } else if (group == "restricted") { in get_sched_policy_from_group()
193 std::string group; in get_sched_policy() local
195 if ((getCGroupSubsys(tid, "schedtune", group) < 0) && in get_sched_policy()
196 (getCGroupSubsys(tid, "cpu", group) < 0)) { in get_sched_policy()
201 if (!group.empty()) { in get_sched_policy()
202 if (get_sched_policy_from_group(group, policy) < 0) { in get_sched_policy()
203 group.clear(); in get_sched_policy()
210 if (cpusets_enabled() && getCGroupSubsys(tid, "cpuset", group) < 0) { in get_sched_policy()
214 return get_sched_policy_from_group(group, policy); in get_sched_policy()