diff options
author | Ingo Molnar <mingo@kernel.org> | 2017-02-03 15:37:49 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-03-02 19:43:46 -0500 |
commit | 6bfbaa51ed47774492d83d182a86068cc35aa4c6 (patch) | |
tree | 6460d4a4c08ff2f8f43f521d19150a9a604c30a7 /include/linux/sched/task.h | |
parent | 901b14bd946a8b7ea211105b6207e082ddd36846 (diff) |
sched/headers, RCU: Move rcu_copy_process() from <linux/sched/task.h> to kernel/fork.c
Move rcu_copy_process() into kernel/fork.c, which is the only
user of this inline function.
This simplifies <linux/sched/task.h> to the level that <linux/sched.h>
does not have to be included in it anymore - which change is done
in a subsequent patch.
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/sched/task.h')
-rw-r--r-- | include/linux/sched/task.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/include/linux/sched/task.h b/include/linux/sched/task.h index e93638a03515..20ed9108f261 100644 --- a/include/linux/sched/task.h +++ b/include/linux/sched/task.h | |||
@@ -25,21 +25,6 @@ extern asmlinkage void schedule_tail(struct task_struct *prev); | |||
25 | extern void init_idle(struct task_struct *idle, int cpu); | 25 | extern void init_idle(struct task_struct *idle, int cpu); |
26 | extern void init_idle_bootup_task(struct task_struct *idle); | 26 | extern void init_idle_bootup_task(struct task_struct *idle); |
27 | 27 | ||
28 | static inline void rcu_copy_process(struct task_struct *p) | ||
29 | { | ||
30 | #ifdef CONFIG_PREEMPT_RCU | ||
31 | p->rcu_read_lock_nesting = 0; | ||
32 | p->rcu_read_unlock_special.s = 0; | ||
33 | p->rcu_blocked_node = NULL; | ||
34 | INIT_LIST_HEAD(&p->rcu_node_entry); | ||
35 | #endif /* #ifdef CONFIG_PREEMPT_RCU */ | ||
36 | #ifdef CONFIG_TASKS_RCU | ||
37 | p->rcu_tasks_holdout = false; | ||
38 | INIT_LIST_HEAD(&p->rcu_tasks_holdout_list); | ||
39 | p->rcu_tasks_idle_cpu = -1; | ||
40 | #endif /* #ifdef CONFIG_TASKS_RCU */ | ||
41 | } | ||
42 | |||
43 | extern int sched_fork(unsigned long clone_flags, struct task_struct *p); | 28 | extern int sched_fork(unsigned long clone_flags, struct task_struct *p); |
44 | extern void sched_dead(struct task_struct *p); | 29 | extern void sched_dead(struct task_struct *p); |
45 | 30 | ||