summaryrefslogtreecommitdiff
path: root/include/linux/sched/autogroup.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2017-02-04 01:15:21 +0300
committerIngo Molnar <mingo@kernel.org>2017-03-03 03:43:47 +0300
commit70806b21e4d64f01193a2b64a053b75ff53a2b10 (patch)
treee0fbfb2e22eda1ee7cf2b152b9c2217d0aee32b9 /include/linux/sched/autogroup.h
parentf3ac60671954c8d413532627b1be13a76f394c49 (diff)
downloadlinux-70806b21e4d64f01193a2b64a053b75ff53a2b10.tar.xz
sched/headers: Move the 'root_task_group' declaration to <linux/sched/autogroup.h>
Also remove the duplicate declaration from <linux/init_task.h>. ( That declaration was originally duplicated for dependency hell reasons, but there's no problem including the much smaller <linux/sched/autogroup.h> header now, to pick up the right prototype. ) Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/sched/autogroup.h')
-rw-r--r--include/linux/sched/autogroup.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/sched/autogroup.h b/include/linux/sched/autogroup.h
index 586bdf37330d..fd6855548d0c 100644
--- a/include/linux/sched/autogroup.h
+++ b/include/linux/sched/autogroup.h
@@ -4,6 +4,7 @@
#include <linux/sched.h>
struct signal_struct;
+struct task_group;
struct seq_file;
#ifdef CONFIG_SCHED_AUTOGROUP
@@ -24,4 +25,8 @@ static inline void sched_autogroup_exit(struct signal_struct *sig) { }
static inline void sched_autogroup_exit_task(struct task_struct *p) { }
#endif
+#ifdef CONFIG_CGROUP_SCHED
+extern struct task_group root_task_group;
+#endif /* CONFIG_CGROUP_SCHED */
+
#endif /* _LINUX_SCHED_AUTOGROUP_H */