1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_SCHED_AUTOGROUP_H
3 #define _LINUX_SCHED_AUTOGROUP_H
10 #ifdef CONFIG_SCHED_AUTOGROUP
11 extern void sched_autogroup_create_attach(struct task_struct
*p
);
12 extern void sched_autogroup_detach(struct task_struct
*p
);
13 extern void sched_autogroup_fork(struct signal_struct
*sig
);
14 extern void sched_autogroup_exit(struct signal_struct
*sig
);
15 extern void sched_autogroup_exit_task(struct task_struct
*p
);
17 extern void proc_sched_autogroup_show_task(struct task_struct
*p
, struct seq_file
*m
);
18 extern int proc_sched_autogroup_set_nice(struct task_struct
*p
, int nice
);
21 static inline void sched_autogroup_create_attach(struct task_struct
*p
) { }
22 static inline void sched_autogroup_detach(struct task_struct
*p
) { }
23 static inline void sched_autogroup_fork(struct signal_struct
*sig
) { }
24 static inline void sched_autogroup_exit(struct signal_struct
*sig
) { }
25 static inline void sched_autogroup_exit_task(struct task_struct
*p
) { }
28 #ifdef CONFIG_CGROUP_SCHED
29 extern struct task_group root_task_group
;
30 #endif /* CONFIG_CGROUP_SCHED */
32 #endif /* _LINUX_SCHED_AUTOGROUP_H */