diff options
author | Ingo Molnar <mingo@kernel.org> | 2018-03-03 06:20:47 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-03-04 06:39:29 -0500 |
commit | 325ea10c0809406ce23f038602abbc454f3f761d (patch) | |
tree | 4a3f7e57a7d2aecd05c9b9e1e610d52e5050a817 /kernel/sched/idle_task.c | |
parent | 97fb7a0a8944bd6d2c5634e1e0fa689a5c40bc22 (diff) |
sched/headers: Simplify and clean up header usage in the scheduler
Do the following cleanups and simplifications:
- sched/sched.h already includes <asm/paravirt.h>, so no need to
include it in sched/core.c again.
- order the <linux/sched/*.h> headers alphabetically
- add all <linux/sched/*.h> headers to kernel/sched/sched.h
- remove all unnecessary includes from the .c files that
are already included in kernel/sched/sched.h.
Finally, make all scheduler .c files use a single common header:
#include "sched.h"
... which now contains a union of the relied upon headers.
This makes the various .c files easier to read and easier to handle.
Cc: 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 'kernel/sched/idle_task.c')
-rw-r--r-- | kernel/sched/idle_task.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/sched/idle_task.c b/kernel/sched/idle_task.c index ec73680922f8..488222ac4651 100644 --- a/kernel/sched/idle_task.c +++ b/kernel/sched/idle_task.c | |||
@@ -1,12 +1,11 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | #include "sched.h" | ||
3 | |||
4 | /* | 2 | /* |
5 | * idle-task scheduling class. | 3 | * idle-task scheduling class. |
6 | * | 4 | * |
7 | * (NOTE: these are not related to SCHED_IDLE tasks which are | 5 | * (NOTE: these are not related to SCHED_IDLE batch scheduling tasks which are |
8 | * handled in sched/fair.c) | 6 | * handled in sched/fair.c) |
9 | */ | 7 | */ |
8 | #include "sched.h" | ||
10 | 9 | ||
11 | #ifdef CONFIG_SMP | 10 | #ifdef CONFIG_SMP |
12 | static int | 11 | static int |