diff options
Diffstat (limited to 'include/linux/sched.h')
| -rw-r--r-- | include/linux/sched.h | 14 | 
1 files changed, 13 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 81a173c0897..f774d88cd0a 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1341,6 +1341,8 @@ struct task_struct {  				 * execve */  	unsigned in_iowait:1; +	/* task may not gain privileges */ +	unsigned no_new_privs:1;  	/* Revert to default priority/policy when forking */  	unsigned sched_reset_on_fork:1; @@ -1450,7 +1452,7 @@ struct task_struct {  	uid_t loginuid;  	unsigned int sessionid;  #endif -	seccomp_t seccomp; +	struct seccomp seccomp;  /* Thread group tracking */     	u32 parent_exec_id; @@ -1905,12 +1907,22 @@ static inline void rcu_copy_process(struct task_struct *p)  	INIT_LIST_HEAD(&p->rcu_node_entry);  } +static inline void rcu_switch_from(struct task_struct *prev) +{ +	if (prev->rcu_read_lock_nesting != 0) +		rcu_preempt_note_context_switch(); +} +  #else  static inline void rcu_copy_process(struct task_struct *p)  {  } +static inline void rcu_switch_from(struct task_struct *prev) +{ +} +  #endif  #ifdef CONFIG_SMP  |