diff options
author | Ingo Molnar <mingo@kernel.org> | 2017-02-03 19:20:53 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-03-02 19:45:22 -0500 |
commit | cdc75e9f7b14f29efcf4b162a3c673733e96db79 (patch) | |
tree | 4d09cb5b167f5f5c82138f3cfe37977d5e8060de /include/linux/sched/task.h | |
parent | 77ba809e8b39b4e384df0433e2bd3dd0907dad29 (diff) |
sched/headers: Move 'init_task' and 'init_thread_union' from <linux/sched.h> to <linux/sched/task.h>
'init_task' is really not part of core scheduler APIs but part of
the fork() interface between the scheduler and process management.
So move the declarations.
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 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/sched/task.h b/include/linux/sched/task.h index 20ed9108f261..1be049a18d1b 100644 --- a/include/linux/sched/task.h +++ b/include/linux/sched/task.h | |||
@@ -8,6 +8,9 @@ | |||
8 | 8 | ||
9 | #include <linux/sched.h> | 9 | #include <linux/sched.h> |
10 | 10 | ||
11 | struct task_struct; | ||
12 | union thread_union; | ||
13 | |||
11 | /* | 14 | /* |
12 | * This serializes "schedule()" and also protects | 15 | * This serializes "schedule()" and also protects |
13 | * the run-queue from deletions/modifications (but | 16 | * the run-queue from deletions/modifications (but |
@@ -17,6 +20,9 @@ | |||
17 | extern rwlock_t tasklist_lock; | 20 | extern rwlock_t tasklist_lock; |
18 | extern spinlock_t mmlist_lock; | 21 | extern spinlock_t mmlist_lock; |
19 | 22 | ||
23 | extern union thread_union init_thread_union; | ||
24 | extern struct task_struct init_task; | ||
25 | |||
20 | #ifdef CONFIG_PROVE_RCU | 26 | #ifdef CONFIG_PROVE_RCU |
21 | extern int lockdep_tasklist_lock_is_held(void); | 27 | extern int lockdep_tasklist_lock_is_held(void); |
22 | #endif /* #ifdef CONFIG_PROVE_RCU */ | 28 | #endif /* #ifdef CONFIG_PROVE_RCU */ |