]> git.baikalelectronics.ru Git - kernel.git/commit
sched/headers: Move <asm/current.h> include from the middle of <linux/sched.h> to...
authorIngo Molnar <mingo@kernel.org>
Fri, 3 Feb 2017 11:11:00 +0000 (12:11 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 3 Mar 2017 00:43:44 +0000 (01:43 +0100)
commit73a2148e1d644a99c58bad494cb348b8d1cbe53c
tree8c756168498a6a018a3d6fabb21a3888a0396180
parent6057b93b5495efc4e1818eaf40215196eb4ee545
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>
include/linux/sched.h