diff options
Diffstat (limited to 'include/linux/sched.h')
| -rw-r--r-- | include/linux/sched.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index a5b92c70c737..9c2d46da486e 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
| @@ -509,6 +509,8 @@ struct thread_group_cputimer { | |||
| 509 | spinlock_t lock; | 509 | spinlock_t lock; |
| 510 | }; | 510 | }; |
| 511 | 511 | ||
| 512 | struct autogroup; | ||
| 513 | |||
| 512 | /* | 514 | /* |
| 513 | * NOTE! "signal_struct" does not have it's own | 515 | * NOTE! "signal_struct" does not have it's own |
| 514 | * locking, because a shared signal_struct always | 516 | * locking, because a shared signal_struct always |
| @@ -576,6 +578,9 @@ struct signal_struct { | |||
| 576 | 578 | ||
| 577 | struct tty_struct *tty; /* NULL if no tty */ | 579 | struct tty_struct *tty; /* NULL if no tty */ |
| 578 | 580 | ||
| 581 | #ifdef CONFIG_SCHED_AUTOGROUP | ||
| 582 | struct autogroup *autogroup; | ||
| 583 | #endif | ||
| 579 | /* | 584 | /* |
| 580 | * Cumulative resource counters for dead threads in the group, | 585 | * Cumulative resource counters for dead threads in the group, |
| 581 | * and for reaped dead child processes forked by this group. | 586 | * and for reaped dead child processes forked by this group. |
| @@ -1927,6 +1932,24 @@ int sched_rt_handler(struct ctl_table *table, int write, | |||
| 1927 | 1932 | ||
| 1928 | extern unsigned int sysctl_sched_compat_yield; | 1933 | extern unsigned int sysctl_sched_compat_yield; |
| 1929 | 1934 | ||
| 1935 | #ifdef CONFIG_SCHED_AUTOGROUP | ||
| 1936 | extern unsigned int sysctl_sched_autogroup_enabled; | ||
| 1937 | |||
| 1938 | extern void sched_autogroup_create_attach(struct task_struct *p); | ||
| 1939 | extern void sched_autogroup_detach(struct task_struct *p); | ||
| 1940 | extern void sched_autogroup_fork(struct signal_struct *sig); | ||
| 1941 | extern void sched_autogroup_exit(struct signal_struct *sig); | ||
| 1942 | #ifdef CONFIG_PROC_FS | ||
| 1943 | extern void proc_sched_autogroup_show_task(struct task_struct *p, struct seq_file *m); | ||
| 1944 | extern int proc_sched_autogroup_set_nice(struct task_struct *p, int *nice); | ||
| 1945 | #endif | ||
| 1946 | #else | ||
| 1947 | static inline void sched_autogroup_create_attach(struct task_struct *p) { } | ||
| 1948 | static inline void sched_autogroup_detach(struct task_struct *p) { } | ||
| 1949 | static inline void sched_autogroup_fork(struct signal_struct *sig) { } | ||
| 1950 | static inline void sched_autogroup_exit(struct signal_struct *sig) { } | ||
| 1951 | #endif | ||
| 1952 | |||
| 1930 | #ifdef CONFIG_RT_MUTEXES | 1953 | #ifdef CONFIG_RT_MUTEXES |
| 1931 | extern int rt_mutex_getprio(struct task_struct *p); | 1954 | extern int rt_mutex_getprio(struct task_struct *p); |
| 1932 | extern void rt_mutex_setprio(struct task_struct *p, int prio); | 1955 | extern void rt_mutex_setprio(struct task_struct *p, int prio); |
