Ingo Molnar | 4eb5aaa | 2017-02-08 18:51:29 +0100 | [diff] [blame] | 1 | #ifndef _LINUX_SCHED_AUTOGROUP_H |
| 2 | #define _LINUX_SCHED_AUTOGROUP_H |
| 3 | |
Ingo Molnar | de8f1c7 | 2017-02-01 18:41:24 +0100 | [diff] [blame] | 4 | struct signal_struct; |
Ingo Molnar | 5fd7315 | 2017-02-08 18:51:54 +0100 | [diff] [blame] | 5 | struct task_struct; |
Ingo Molnar | 70806b2 | 2017-02-03 23:15:21 +0100 | [diff] [blame] | 6 | struct task_group; |
Ingo Molnar | de8f1c7 | 2017-02-01 18:41:24 +0100 | [diff] [blame] | 7 | struct seq_file; |
| 8 | |
| 9 | #ifdef CONFIG_SCHED_AUTOGROUP |
| 10 | extern void sched_autogroup_create_attach(struct task_struct *p); |
| 11 | extern void sched_autogroup_detach(struct task_struct *p); |
| 12 | extern void sched_autogroup_fork(struct signal_struct *sig); |
| 13 | extern void sched_autogroup_exit(struct signal_struct *sig); |
| 14 | extern void sched_autogroup_exit_task(struct task_struct *p); |
| 15 | #ifdef CONFIG_PROC_FS |
| 16 | extern void proc_sched_autogroup_show_task(struct task_struct *p, struct seq_file *m); |
| 17 | extern int proc_sched_autogroup_set_nice(struct task_struct *p, int nice); |
| 18 | #endif |
| 19 | #else |
| 20 | static inline void sched_autogroup_create_attach(struct task_struct *p) { } |
| 21 | static inline void sched_autogroup_detach(struct task_struct *p) { } |
| 22 | static inline void sched_autogroup_fork(struct signal_struct *sig) { } |
| 23 | static inline void sched_autogroup_exit(struct signal_struct *sig) { } |
| 24 | static inline void sched_autogroup_exit_task(struct task_struct *p) { } |
| 25 | #endif |
| 26 | |
Ingo Molnar | 70806b2 | 2017-02-03 23:15:21 +0100 | [diff] [blame] | 27 | #ifdef CONFIG_CGROUP_SCHED |
| 28 | extern struct task_group root_task_group; |
| 29 | #endif /* CONFIG_CGROUP_SCHED */ |
| 30 | |
Ingo Molnar | 4eb5aaa | 2017-02-08 18:51:29 +0100 | [diff] [blame] | 31 | #endif /* _LINUX_SCHED_AUTOGROUP_H */ |