diff options
author | Li Zefan <lizefan@huawei.com> | 2013-03-12 21:17:09 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-03-20 10:50:25 -0400 |
commit | 081aa458c38ba576bdd4265fc807fa95b48b9e79 (patch) | |
tree | b080dbb2d1fed0b53193b8552f561d8bab39d6b5 /include | |
parent | bd2953ebbb533aeda9b86c82a53d5197a9a38f1b (diff) |
cgroup: consolidate cgroup_attach_task() and cgroup_attach_proc()
These two functions share most of the code.
Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/cgroup.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 7e818a3ef60a..01c48c6806d6 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h | |||
@@ -693,7 +693,8 @@ struct task_struct *cgroup_iter_next(struct cgroup *cgrp, | |||
693 | struct cgroup_iter *it); | 693 | struct cgroup_iter *it); |
694 | void cgroup_iter_end(struct cgroup *cgrp, struct cgroup_iter *it); | 694 | void cgroup_iter_end(struct cgroup *cgrp, struct cgroup_iter *it); |
695 | int cgroup_scan_tasks(struct cgroup_scanner *scan); | 695 | int cgroup_scan_tasks(struct cgroup_scanner *scan); |
696 | int cgroup_attach_task(struct cgroup *, struct task_struct *); | 696 | int cgroup_attach_task(struct cgroup *cgrp, struct task_struct *tsk, |
697 | bool threadgroup); | ||
697 | int cgroup_attach_task_all(struct task_struct *from, struct task_struct *); | 698 | int cgroup_attach_task_all(struct task_struct *from, struct task_struct *); |
698 | 699 | ||
699 | /* | 700 | /* |