1 #ifdef CONFIG_SCHED_AUTOGROUP
6 struct rw_semaphore lock;
11 static inline bool task_group_is_autogroup(struct task_group *tg);
12 static inline struct task_group *
13 autogroup_task_group(struct task_struct *p, struct task_group *tg);
15 #else /* !CONFIG_SCHED_AUTOGROUP */
17 static inline void autogroup_init(struct task_struct *init_task) { }
18 static inline void autogroup_free(struct task_group *tg) { }
19 static inline bool task_group_is_autogroup(struct task_group *tg)
24 static inline struct task_group *
25 autogroup_task_group(struct task_struct *p, struct task_group *tg)
30 #ifdef CONFIG_SCHED_DEBUG
31 static inline int autogroup_path(struct task_group *tg, char *buf, int buflen)
37 #endif /* CONFIG_SCHED_AUTOGROUP */