Lines Matching refs:tg
1355 struct task_group *tg = css_tg(css);
1357 .weight = tg->scx.weight,
1358 .bw_period_us = tg->scx.bw_period_us,
1359 .bw_quota_us = tg->scx.bw_quota_us,
1360 .bw_burst_us = tg->scx.bw_burst_us,
1361 .sched_idle = tg->scx.idle,
1364 if (tg->scx.sched != parent ||
1375 tg->scx.flags |= SCX_TG_SUB_INIT;
1379 struct task_group *tg = css_tg(css);
1385 if (!(tg->scx.flags & SCX_TG_SUB_INIT))
1389 if ((tg->scx.flags & SCX_TG_INITED) && SCX_HAS_OP(parent, cgroup_exit))
1391 tg->scx.sched = sch;
1392 tg->scx.flags |= SCX_TG_INITED;
1393 tg->scx.flags &= ~SCX_TG_SUB_INIT;
1400 struct task_group *tg = css_tg(css);
1402 if (!(tg->scx.flags & SCX_TG_SUB_INIT))
1407 tg->scx.flags &= ~SCX_TG_SUB_INIT;
1420 * the parent with the current tg->scx.* values, resyncing settings that changed
1445 struct task_group *tg = css_tg(css);
1447 if (tg->scx.sched != sch ||
1451 /* skip the exit if @sch's ops.cgroup_init() failed for the tg */
1452 if ((tg->scx.flags & SCX_TG_INITED) && SCX_HAS_OP(sch, cgroup_exit))
1454 tg->scx.sched = parent;
1455 tg->scx.flags |= SCX_TG_SUB_INIT;
1459 struct task_group *tg = css_tg(css);
1461 .weight = tg->scx.weight,
1462 .bw_period_us = tg->scx.bw_period_us,
1463 .bw_quota_us = tg->scx.bw_quota_us,
1464 .bw_burst_us = tg->scx.bw_burst_us,
1465 .sched_idle = tg->scx.idle,
1469 WARN_ON_ONCE(tg->scx.sched == sch);
1473 * can't: a tg punted to the parent by an earlier failure would
1476 if (!(tg->scx.flags & SCX_TG_SUB_INIT))
1478 tg->scx.flags &= ~(SCX_TG_SUB_INIT | SCX_TG_INITED);
1497 tg->scx.flags |= SCX_TG_INITED;