diff options
Diffstat (limited to 'include/linux/sched.h')
| -rw-r--r-- | include/linux/sched.h | 27 | 
1 files changed, 17 insertions, 10 deletions
| diff --git a/include/linux/sched.h b/include/linux/sched.h index 23bddac4bad8..c2070e92a9d6 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -273,11 +273,11 @@ extern void init_idle_bootup_task(struct task_struct *idle);  extern int runqueue_is_locked(int cpu);  #if defined(CONFIG_SMP) && defined(CONFIG_NO_HZ) -extern void select_nohz_load_balancer(int stop_tick); +extern void nohz_balance_enter_idle(int cpu);  extern void set_cpu_sd_state_idle(void);  extern int get_nohz_timer_target(void);  #else -static inline void select_nohz_load_balancer(int stop_tick) { } +static inline void nohz_balance_enter_idle(int cpu) { }  static inline void set_cpu_sd_state_idle(void) { }  #endif @@ -446,6 +446,9 @@ extern int get_dumpable(struct mm_struct *mm);  #define MMF_VM_HUGEPAGE		17	/* set when VM_HUGEPAGE is set on vma */  #define MMF_EXE_FILE_CHANGED	18	/* see prctl_set_mm_exe_file() */ +#define MMF_HAS_UPROBES		19	/* has uprobes */ +#define MMF_RECALC_UPROBES	20	/* MMF_HAS_UPROBES can be wrong */ +  #define MMF_INIT_MASK		(MMF_DUMPABLE_MASK | MMF_DUMP_FILTER_MASK)  struct sighand_struct { @@ -668,7 +671,6 @@ struct signal_struct {  	struct rw_semaphore group_rwsem;  #endif -	int oom_adj;		/* OOM kill score adjustment (bit shift) */  	int oom_score_adj;	/* OOM kill score adjustment */  	int oom_score_adj_min;	/* OOM kill score adjustment minimum value.  				 * Only settable by CAP_SYS_RESOURCE. */ @@ -678,11 +680,6 @@ struct signal_struct {  					 * (notably. ptrace) */  }; -/* Context switch must be unlocked if interrupts are to be enabled */ -#ifdef __ARCH_WANT_INTERRUPTS_ON_CTXSW -# define __ARCH_WANT_UNLOCKED_CTXSW -#endif -  /*   * Bits in flags field of signal_struct.   */ @@ -860,7 +857,6 @@ enum cpu_idle_type {  #define SD_BALANCE_FORK		0x0008	/* Balance on fork, clone */  #define SD_BALANCE_WAKE		0x0010  /* Balance on wakeup */  #define SD_WAKE_AFFINE		0x0020	/* Wake task to waking CPU */ -#define SD_PREFER_LOCAL		0x0040  /* Prefer to keep tasks local to this domain */  #define SD_SHARE_CPUPOWER	0x0080	/* Domain members share cpu power */  #define SD_SHARE_PKG_RESOURCES	0x0200	/* Domain members share cpu pkg resources */  #define SD_SERIALIZE		0x0400	/* Only a single load balancing instance */ @@ -1417,7 +1413,7 @@ struct task_struct {  	struct audit_context *audit_context;  #ifdef CONFIG_AUDITSYSCALL -	uid_t loginuid; +	kuid_t loginuid;  	unsigned int sessionid;  #endif  	struct seccomp seccomp; @@ -1529,6 +1525,9 @@ struct task_struct {  	 * cache last used pipe for splice  	 */  	struct pipe_inode_info *splice_pipe; + +	struct page_frag task_frag; +  #ifdef	CONFIG_TASK_DELAY_ACCT  	struct task_delay_info *delays;  #endif @@ -1885,6 +1884,14 @@ static inline void rcu_copy_process(struct task_struct *p)  #endif +static inline void rcu_switch(struct task_struct *prev, +			      struct task_struct *next) +{ +#ifdef CONFIG_RCU_USER_QS +	rcu_user_hooks_switch(prev, next); +#endif +} +  static inline void tsk_restore_flags(struct task_struct *task,  				unsigned long orig_flags, unsigned long flags)  { | 
