summaryrefslogtreecommitdiff
path: root/include/linux/sched/autogroup.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2017-02-01 18:41:24 +0100
committerIngo Molnar <mingo@kernel.org>2017-03-02 08:42:43 +0100
commitde8f1c77313d8c908b2897f268d466c13df161d4 (patch)
treea5effdfa2f28915fbe889a4578276cee13ffc43e /include/linux/sched/autogroup.h
parentdea38c74cb9205341f52b8d8ae18f61247a43ea8 (diff)
sched/headers: Move autogroup APIs into <linux/sched/autogroup.h>
Further reduce the size of sched.h. 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.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/sched/autogroup.h b/include/linux/sched/autogroup.h
index d745f22e57dc..586bdf37330d 100644
--- a/include/linux/sched/autogroup.h
+++ b/include/linux/sched/autogroup.h
@@ -3,4 +3,25 @@
#include <linux/sched.h>
+struct signal_struct;
+struct seq_file;
+
+#ifdef CONFIG_SCHED_AUTOGROUP
+extern void sched_autogroup_create_attach(struct task_struct *p);
+extern void sched_autogroup_detach(struct task_struct *p);
+extern void sched_autogroup_fork(struct signal_struct *sig);
+extern void sched_autogroup_exit(struct signal_struct *sig);
+extern void sched_autogroup_exit_task(struct task_struct *p);
+#ifdef CONFIG_PROC_FS
+extern void proc_sched_autogroup_show_task(struct task_struct *p, struct seq_file *m);
+extern int proc_sched_autogroup_set_nice(struct task_struct *p, int nice);
+#endif
+#else
+static inline void sched_autogroup_create_attach(struct task_struct *p) { }
+static inline void sched_autogroup_detach(struct task_struct *p) { }
+static inline void sched_autogroup_fork(struct signal_struct *sig) { }
+static inline void sched_autogroup_exit(struct signal_struct *sig) { }
+static inline void sched_autogroup_exit_task(struct task_struct *p) { }
+#endif
+
#endif /* _LINUX_SCHED_AUTOGROUP_H */