ipmr/ip6mr: Initialize the last assert time of mfc entries.
[pandora-kernel.git] / kernel / sched_autogroup.h
1 #ifdef CONFIG_SCHED_AUTOGROUP
2
3 struct autogroup {
4         struct kref             kref;
5         struct task_group       *tg;
6         struct rw_semaphore     lock;
7         unsigned long           id;
8         int                     nice;
9 };
10
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);
14
15 #else /* !CONFIG_SCHED_AUTOGROUP */
16
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)
20 {
21         return 0;
22 }
23
24 static inline struct task_group *
25 autogroup_task_group(struct task_struct *p, struct task_group *tg)
26 {
27         return tg;
28 }
29
30 #ifdef CONFIG_SCHED_DEBUG
31 static inline int autogroup_path(struct task_group *tg, char *buf, int buflen)
32 {
33         return 0;
34 }
35 #endif
36
37 #endif /* CONFIG_SCHED_AUTOGROUP */