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/debug.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/debug.c')
-rw-r--r-- | kernel/sched/debug.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index 7c82a9b88510..644d9a464380 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * kernel/sched/debug.c | 2 | * kernel/sched/debug.c |
3 | * | 3 | * |
4 | * Print the CFS rbtree | 4 | * Print the CFS rbtree and other debugging details |
5 | * | 5 | * |
6 | * Copyright(C) 2007, Red Hat, Inc., Ingo Molnar | 6 | * Copyright(C) 2007, Red Hat, Inc., Ingo Molnar |
7 | * | 7 | * |
@@ -9,15 +9,6 @@ | |||
9 | * it under the terms of the GNU General Public License version 2 as | 9 | * it under the terms of the GNU General Public License version 2 as |
10 | * published by the Free Software Foundation. | 10 | * published by the Free Software Foundation. |
11 | */ | 11 | */ |
12 | #include <linux/proc_fs.h> | ||
13 | #include <linux/sched/mm.h> | ||
14 | #include <linux/sched/task.h> | ||
15 | #include <linux/seq_file.h> | ||
16 | #include <linux/kallsyms.h> | ||
17 | #include <linux/utsname.h> | ||
18 | #include <linux/mempolicy.h> | ||
19 | #include <linux/debugfs.h> | ||
20 | |||
21 | #include "sched.h" | 12 | #include "sched.h" |
22 | 13 | ||
23 | static DEFINE_SPINLOCK(sched_debug_lock); | 14 | static DEFINE_SPINLOCK(sched_debug_lock); |