usb: musb: blackfin: include prefetch head file
[linux-2.6-block.git] / kernel / sched_autogroup.h
CommitLineData
5091faa4
MG
1#ifdef CONFIG_SCHED_AUTOGROUP
2
3struct autogroup {
800d4d30
YZ
4 /*
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.
8 */
5091faa4
MG
9 struct kref kref;
10 struct task_group *tg;
11 struct rw_semaphore lock;
12 unsigned long id;
13 int nice;
14};
15
1c09ab0d 16static inline bool task_group_is_autogroup(struct task_group *tg);
5091faa4
MG
17static inline struct task_group *
18autogroup_task_group(struct task_struct *p, struct task_group *tg);
19
20#else /* !CONFIG_SCHED_AUTOGROUP */
21
22static inline void autogroup_init(struct task_struct *init_task) { }
23static inline void autogroup_free(struct task_group *tg) { }
f4493771
MG
24static inline bool task_group_is_autogroup(struct task_group *tg)
25{
26 return 0;
27}
5091faa4
MG
28
29static inline struct task_group *
30autogroup_task_group(struct task_struct *p, struct task_group *tg)
31{
32 return tg;
33}
34
35#ifdef CONFIG_SCHED_DEBUG
36static inline int autogroup_path(struct task_group *tg, char *buf, int buflen)
37{
38 return 0;
39}
40#endif
41
42#endif /* CONFIG_SCHED_AUTOGROUP */