diff options
author | Ingo Molnar <mingo@kernel.org> | 2017-02-03 06:11:00 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-03-02 19:43:44 -0500 |
commit | 70b8157e61d0143fb44ae9482557d7aca365da3d (patch) | |
tree | 8c756168498a6a018a3d6fabb21a3888a0396180 | |
parent | 63cc9d6fca8c220c2406f1376100a9acb55197af (diff) |
sched/headers: Move <asm/current.h> include from the middle of <linux/sched.h> to the header portion
Linux-0.01 already defined 'current' in the middle of sched.h, so this
is an ancient historical precedent - but still in a modern kernel it
looks a bit weird that we have:
#include <asm/current.h>
in the middle of the header.
Move it further up. If this was done for some obscure dependency
reasons then we'll trigger and document it.
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>
-rw-r--r-- | include/linux/sched.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 5a4fbc76feb4..ac0fed4c3130 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -31,6 +31,8 @@ | |||
31 | #include <linux/magic.h> | 31 | #include <linux/magic.h> |
32 | #include <linux/cgroup-defs.h> | 32 | #include <linux/cgroup-defs.h> |
33 | 33 | ||
34 | #include <asm/current.h> | ||
35 | |||
34 | struct sched_attr; | 36 | struct sched_attr; |
35 | struct sched_param; | 37 | struct sched_param; |
36 | 38 | ||
@@ -1577,8 +1579,6 @@ extern struct task_struct *find_task_by_vpid(pid_t nr); | |||
1577 | extern struct task_struct *find_task_by_pid_ns(pid_t nr, | 1579 | extern struct task_struct *find_task_by_pid_ns(pid_t nr, |
1578 | struct pid_namespace *ns); | 1580 | struct pid_namespace *ns); |
1579 | 1581 | ||
1580 | #include <asm/current.h> | ||
1581 | |||
1582 | extern int wake_up_state(struct task_struct *tsk, unsigned int state); | 1582 | extern int wake_up_state(struct task_struct *tsk, unsigned int state); |
1583 | extern int wake_up_process(struct task_struct *tsk); | 1583 | extern int wake_up_process(struct task_struct *tsk); |
1584 | extern void wake_up_new_task(struct task_struct *tsk); | 1584 | extern void wake_up_new_task(struct task_struct *tsk); |