• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/kernel/

Lines Matching defs:tg

204 	struct task_group *tg;
207 tg = p->user->tg;
209 tg = container_of(task_subsys_state(p, cpu_cgroup_subsys_id),
212 tg = &init_task_group;
214 return tg;
260 struct task_group *tg; /* group that "owns" this runqueue */
6775 cfs_rq->tg = &init_task_group;
6983 struct task_group *tg;
6989 tg = kzalloc(sizeof(*tg), GFP_KERNEL);
6990 if (!tg)
6993 tg->cfs_rq = kzalloc(sizeof(cfs_rq) * NR_CPUS, GFP_KERNEL);
6994 if (!tg->cfs_rq)
6996 tg->se = kzalloc(sizeof(se) * NR_CPUS, GFP_KERNEL);
6997 if (!tg->se)
7016 tg->cfs_rq[i] = cfs_rq;
7018 cfs_rq->tg = tg;
7020 tg->se[i] = se;
7030 cfs_rq = tg->cfs_rq[i];
7034 tg->shares = NICE_0_LOAD;
7035 spin_lock_init(&tg->lock);
7037 return tg;
7041 if (tg->cfs_rq)
7042 kfree(tg->cfs_rq[i]);
7043 if (tg->se)
7044 kfree(tg->se[i]);
7046 kfree(tg->cfs_rq);
7047 kfree(tg->se);
7048 kfree(tg);
7056 struct task_group *tg = container_of(rhp, struct task_group, rcu);
7063 cfs_rq = tg->cfs_rq[i];
7066 se = tg->se[i];
7070 kfree(tg->cfs_rq);
7071 kfree(tg->se);
7072 kfree(tg);
7076 void sched_destroy_group(struct task_group *tg)
7082 cfs_rq = tg->cfs_rq[i];
7089 call_rcu(&tg->rcu, free_sched_group);
7154 int sched_group_set_shares(struct task_group *tg, unsigned long shares)
7158 spin_lock(&tg->lock);
7159 if (tg->shares == shares)
7162 tg->shares = shares;
7164 set_se_shares(tg->se[i], shares);
7167 spin_unlock(&tg->lock);
7171 unsigned long sched_group_shares(struct task_group *tg)
7173 return tg->shares;
7190 struct task_group *tg;
7202 tg = sched_create_group();
7203 if (IS_ERR(tg))
7207 tg->css.cgroup = cgrp;
7209 return &tg->css;
7215 struct task_group *tg = cgroup_tg(cgrp);
7217 sched_destroy_group(tg);
7246 struct task_group *tg = cgroup_tg(cgrp);
7248 return (u64) tg->shares;