aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index ec80684a0127..50d04b92ceda 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -322,8 +322,6 @@ extern unsigned long
322arch_get_unmapped_area_topdown(struct file *filp, unsigned long addr, 322arch_get_unmapped_area_topdown(struct file *filp, unsigned long addr,
323 unsigned long len, unsigned long pgoff, 323 unsigned long len, unsigned long pgoff,
324 unsigned long flags); 324 unsigned long flags);
325extern void arch_unmap_area(struct mm_struct *, unsigned long);
326extern void arch_unmap_area_topdown(struct mm_struct *, unsigned long);
327#else 325#else
328static inline void arch_pick_mmap_layout(struct mm_struct *mm) {} 326static inline void arch_pick_mmap_layout(struct mm_struct *mm) {}
329#endif 327#endif
@@ -1401,9 +1399,6 @@ struct task_struct {
1401 } memcg_batch; 1399 } memcg_batch;
1402 unsigned int memcg_kmem_skip_account; 1400 unsigned int memcg_kmem_skip_account;
1403#endif 1401#endif
1404#ifdef CONFIG_HAVE_HW_BREAKPOINT
1405 atomic_t ptrace_bp_refcnt;
1406#endif
1407#ifdef CONFIG_UPROBES 1402#ifdef CONFIG_UPROBES
1408 struct uprobe_task *utask; 1403 struct uprobe_task *utask;
1409#endif 1404#endif
@@ -1950,8 +1945,6 @@ extern struct task_struct *find_task_by_vpid(pid_t nr);
1950extern struct task_struct *find_task_by_pid_ns(pid_t nr, 1945extern struct task_struct *find_task_by_pid_ns(pid_t nr,
1951 struct pid_namespace *ns); 1946 struct pid_namespace *ns);
1952 1947
1953extern void __set_special_pids(struct pid *pid);
1954
1955/* per-UID process charging. */ 1948/* per-UID process charging. */
1956extern struct user_struct * alloc_uid(kuid_t); 1949extern struct user_struct * alloc_uid(kuid_t);
1957static inline struct user_struct *get_uid(struct user_struct *u) 1950static inline struct user_struct *get_uid(struct user_struct *u)
@@ -2439,6 +2432,15 @@ extern int __cond_resched_softirq(void);
2439 __cond_resched_softirq(); \ 2432 __cond_resched_softirq(); \
2440}) 2433})
2441 2434
2435static inline void cond_resched_rcu(void)
2436{
2437#if defined(CONFIG_DEBUG_ATOMIC_SLEEP) || !defined(CONFIG_PREEMPT_RCU)
2438 rcu_read_unlock();
2439 cond_resched();
2440 rcu_read_lock();
2441#endif
2442}
2443
2442/* 2444/*
2443 * Does a critical section need to be broken due to another 2445 * Does a critical section need to be broken due to another
2444 * task waiting?: (technically does not depend on CONFIG_PREEMPT, 2446 * task waiting?: (technically does not depend on CONFIG_PREEMPT,