Root/
Source at commit ec7cab4cbb721bff91ec924ec691efd8daf36579 created 12 years 8 months ago. By Maarten ter Huurne, MIPS: JZ4740: A320: Updated quickstart documentation. | |
---|---|
1 | #ifdef CONFIG_SCHED_AUTOGROUP |
2 | |
3 | struct autogroup { |
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 | */ |
9 | struct kref kref; |
10 | struct task_group *tg; |
11 | struct rw_semaphore lock; |
12 | unsigned long id; |
13 | int nice; |
14 | }; |
15 | |
16 | static inline struct task_group * |
17 | autogroup_task_group(struct task_struct *p, struct task_group *tg); |
18 | |
19 | #else /* !CONFIG_SCHED_AUTOGROUP */ |
20 | |
21 | static inline void autogroup_init(struct task_struct *init_task) { } |
22 | static inline void autogroup_free(struct task_group *tg) { } |
23 | static inline bool task_group_is_autogroup(struct task_group *tg) |
24 | { |
25 | return 0; |
26 | } |
27 | |
28 | static inline struct task_group * |
29 | autogroup_task_group(struct task_struct *p, struct task_group *tg) |
30 | { |
31 | return tg; |
32 | } |
33 | |
34 | #ifdef CONFIG_SCHED_DEBUG |
35 | static inline int autogroup_path(struct task_group *tg, char *buf, int buflen) |
36 | { |
37 | return 0; |
38 | } |
39 | #endif |
40 | |
41 | #endif /* CONFIG_SCHED_AUTOGROUP */ |
42 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9