• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/kernel/

Lines Matching refs:cgrp

8843 static inline struct task_group *cgroup_tg(struct cgroup *cgrp)
8845 return container_of(cgroup_subsys_state(cgrp, cpu_cgroup_subsys_id),
8850 cpu_cgroup_create(struct cgroup_subsys *ss, struct cgroup *cgrp)
8854 if (!cgrp->parent) {
8859 parent = cgroup_tg(cgrp->parent);
8868 cpu_cgroup_destroy(struct cgroup_subsys *ss, struct cgroup *cgrp)
8870 struct task_group *tg = cgroup_tg(cgrp);
8876 cpu_cgroup_can_attach_task(struct cgroup *cgrp, struct task_struct *tsk)
8879 if (!sched_rt_can_attach(cgroup_tg(cgrp), tsk))
8890 cpu_cgroup_can_attach(struct cgroup_subsys *ss, struct cgroup *cgrp,
8893 int retval = cpu_cgroup_can_attach_task(cgrp, tsk);
8900 retval = cpu_cgroup_can_attach_task(cgrp, c);
8912 cpu_cgroup_attach(struct cgroup_subsys *ss, struct cgroup *cgrp,
8928 static int cpu_shares_write_u64(struct cgroup *cgrp, struct cftype *cftype,
8931 return sched_group_set_shares(cgroup_tg(cgrp), shareval);
8934 static u64 cpu_shares_read_u64(struct cgroup *cgrp, struct cftype *cft)
8936 struct task_group *tg = cgroup_tg(cgrp);
8943 static int cpu_rt_runtime_write(struct cgroup *cgrp, struct cftype *cft,
8946 return sched_group_set_rt_runtime(cgroup_tg(cgrp), val);
8949 static s64 cpu_rt_runtime_read(struct cgroup *cgrp, struct cftype *cft)
8951 return sched_group_rt_runtime(cgroup_tg(cgrp));
8954 static int cpu_rt_period_write_uint(struct cgroup *cgrp, struct cftype *cftype,
8957 return sched_group_set_rt_period(cgroup_tg(cgrp), rt_period_us);
8960 static u64 cpu_rt_period_read_uint(struct cgroup *cgrp, struct cftype *cft)
8962 return sched_group_rt_period(cgroup_tg(cgrp));
9027 static inline struct cpuacct *cgroup_ca(struct cgroup *cgrp)
9029 return container_of(cgroup_subsys_state(cgrp, cpuacct_subsys_id),
9042 struct cgroup_subsys *ss, struct cgroup *cgrp)
9058 if (cgrp->parent)
9059 ca->parent = cgroup_ca(cgrp->parent);
9075 cpuacct_destroy(struct cgroup_subsys *ss, struct cgroup *cgrp)
9077 struct cpuacct *ca = cgroup_ca(cgrp);
9122 static u64 cpuusage_read(struct cgroup *cgrp, struct cftype *cft)
9124 struct cpuacct *ca = cgroup_ca(cgrp);
9134 static int cpuusage_write(struct cgroup *cgrp, struct cftype *cftype,
9137 struct cpuacct *ca = cgroup_ca(cgrp);
9173 static int cpuacct_stats_show(struct cgroup *cgrp, struct cftype *cft,
9176 struct cpuacct *ca = cgroup_ca(cgrp);
9203 static int cpuacct_populate(struct cgroup_subsys *ss, struct cgroup *cgrp)
9205 return cgroup_add_files(cgrp, ss, files, ARRAY_SIZE(files));