1 #ifdef CONFIG_SCHED_AUTOGROUP
5 * reference doesn't mean how many thread attach to this
6 * autogroup now. It just stands for the number of task
7 * could use this autogroup.
10 struct task_group
*tg
;
11 struct rw_semaphore lock
;
16 static inline bool task_group_is_autogroup(struct task_group
*tg
);
17 static inline struct task_group
*
18 autogroup_task_group(struct task_struct
*p
, struct task_group
*tg
);
20 #else /* !CONFIG_SCHED_AUTOGROUP */
22 static inline void autogroup_init(struct task_struct
*init_task
) { }
23 static inline void autogroup_free(struct task_group
*tg
) { }
24 static inline bool task_group_is_autogroup(struct task_group
*tg
)
29 static inline struct task_group
*
30 autogroup_task_group(struct task_struct
*p
, struct task_group
*tg
)
35 #ifdef CONFIG_SCHED_DEBUG
36 static inline int autogroup_path(struct task_group
*tg
, char *buf
, int buflen
)
42 #endif /* CONFIG_SCHED_AUTOGROUP */