diff options
Diffstat (limited to 'include/linux/sched.h')
| -rw-r--r-- | include/linux/sched.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 41d0237fd449..e8acce717d2a 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
| @@ -90,6 +90,7 @@ struct sched_param { | |||
| 90 | #include <linux/task_io_accounting.h> | 90 | #include <linux/task_io_accounting.h> |
| 91 | #include <linux/latencytop.h> | 91 | #include <linux/latencytop.h> |
| 92 | #include <linux/cred.h> | 92 | #include <linux/cred.h> |
| 93 | #include <linux/llist.h> | ||
| 93 | 94 | ||
| 94 | #include <asm/processor.h> | 95 | #include <asm/processor.h> |
| 95 | 96 | ||
| @@ -270,7 +271,6 @@ extern void init_idle_bootup_task(struct task_struct *idle); | |||
| 270 | 271 | ||
| 271 | extern int runqueue_is_locked(int cpu); | 272 | extern int runqueue_is_locked(int cpu); |
| 272 | 273 | ||
| 273 | extern cpumask_var_t nohz_cpu_mask; | ||
| 274 | #if defined(CONFIG_SMP) && defined(CONFIG_NO_HZ) | 274 | #if defined(CONFIG_SMP) && defined(CONFIG_NO_HZ) |
| 275 | extern void select_nohz_load_balancer(int stop_tick); | 275 | extern void select_nohz_load_balancer(int stop_tick); |
| 276 | extern int get_nohz_timer_target(void); | 276 | extern int get_nohz_timer_target(void); |
| @@ -510,7 +510,7 @@ struct task_cputime { | |||
| 510 | struct thread_group_cputimer { | 510 | struct thread_group_cputimer { |
| 511 | struct task_cputime cputime; | 511 | struct task_cputime cputime; |
| 512 | int running; | 512 | int running; |
| 513 | spinlock_t lock; | 513 | raw_spinlock_t lock; |
| 514 | }; | 514 | }; |
| 515 | 515 | ||
| 516 | #include <linux/rwsem.h> | 516 | #include <linux/rwsem.h> |
| @@ -1225,7 +1225,7 @@ struct task_struct { | |||
| 1225 | unsigned int ptrace; | 1225 | unsigned int ptrace; |
| 1226 | 1226 | ||
| 1227 | #ifdef CONFIG_SMP | 1227 | #ifdef CONFIG_SMP |
| 1228 | struct task_struct *wake_entry; | 1228 | struct llist_node wake_entry; |
| 1229 | int on_cpu; | 1229 | int on_cpu; |
| 1230 | #endif | 1230 | #endif |
| 1231 | int on_rq; | 1231 | int on_rq; |
| @@ -1260,9 +1260,6 @@ struct task_struct { | |||
| 1260 | #ifdef CONFIG_PREEMPT_RCU | 1260 | #ifdef CONFIG_PREEMPT_RCU |
| 1261 | int rcu_read_lock_nesting; | 1261 | int rcu_read_lock_nesting; |
| 1262 | char rcu_read_unlock_special; | 1262 | char rcu_read_unlock_special; |
| 1263 | #if defined(CONFIG_RCU_BOOST) && defined(CONFIG_TREE_PREEMPT_RCU) | ||
| 1264 | int rcu_boosted; | ||
| 1265 | #endif /* #if defined(CONFIG_RCU_BOOST) && defined(CONFIG_TREE_PREEMPT_RCU) */ | ||
| 1266 | struct list_head rcu_node_entry; | 1263 | struct list_head rcu_node_entry; |
| 1267 | #endif /* #ifdef CONFIG_PREEMPT_RCU */ | 1264 | #endif /* #ifdef CONFIG_PREEMPT_RCU */ |
| 1268 | #ifdef CONFIG_TREE_PREEMPT_RCU | 1265 | #ifdef CONFIG_TREE_PREEMPT_RCU |
| @@ -2039,6 +2036,10 @@ static inline void sched_autogroup_fork(struct signal_struct *sig) { } | |||
| 2039 | static inline void sched_autogroup_exit(struct signal_struct *sig) { } | 2036 | static inline void sched_autogroup_exit(struct signal_struct *sig) { } |
| 2040 | #endif | 2037 | #endif |
| 2041 | 2038 | ||
| 2039 | #ifdef CONFIG_CFS_BANDWIDTH | ||
| 2040 | extern unsigned int sysctl_sched_cfs_bandwidth_slice; | ||
| 2041 | #endif | ||
| 2042 | |||
| 2042 | #ifdef CONFIG_RT_MUTEXES | 2043 | #ifdef CONFIG_RT_MUTEXES |
| 2043 | extern int rt_mutex_getprio(struct task_struct *p); | 2044 | extern int rt_mutex_getprio(struct task_struct *p); |
| 2044 | extern void rt_mutex_setprio(struct task_struct *p, int prio); | 2045 | extern void rt_mutex_setprio(struct task_struct *p, int prio); |
| @@ -2165,7 +2166,8 @@ extern int force_sigsegv(int, struct task_struct *); | |||
| 2165 | extern int force_sig_info(int, struct siginfo *, struct task_struct *); | 2166 | extern int force_sig_info(int, struct siginfo *, struct task_struct *); |
| 2166 | extern int __kill_pgrp_info(int sig, struct siginfo *info, struct pid *pgrp); | 2167 | extern int __kill_pgrp_info(int sig, struct siginfo *info, struct pid *pgrp); |
| 2167 | extern int kill_pid_info(int sig, struct siginfo *info, struct pid *pid); | 2168 | extern int kill_pid_info(int sig, struct siginfo *info, struct pid *pid); |
| 2168 | extern int kill_pid_info_as_uid(int, struct siginfo *, struct pid *, uid_t, uid_t, u32); | 2169 | extern int kill_pid_info_as_cred(int, struct siginfo *, struct pid *, |
| 2170 | const struct cred *, u32); | ||
| 2169 | extern int kill_pgrp(struct pid *pid, int sig, int priv); | 2171 | extern int kill_pgrp(struct pid *pid, int sig, int priv); |
| 2170 | extern int kill_pid(struct pid *pid, int sig, int priv); | 2172 | extern int kill_pid(struct pid *pid, int sig, int priv); |
| 2171 | extern int kill_proc_info(int, struct siginfo *, pid_t); | 2173 | extern int kill_proc_info(int, struct siginfo *, pid_t); |
| @@ -2565,7 +2567,7 @@ void thread_group_cputimer(struct task_struct *tsk, struct task_cputime *times); | |||
| 2565 | 2567 | ||
| 2566 | static inline void thread_group_cputime_init(struct signal_struct *sig) | 2568 | static inline void thread_group_cputime_init(struct signal_struct *sig) |
| 2567 | { | 2569 | { |
| 2568 | spin_lock_init(&sig->cputimer.lock); | 2570 | raw_spin_lock_init(&sig->cputimer.lock); |
| 2569 | } | 2571 | } |
| 2570 | 2572 | ||
| 2571 | /* | 2573 | /* |
