There was an error fetching the commit references. Please try again later.
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>
Showing
- include/linux/sched/deadline.h 0 additions, 6 deletionsinclude/linux/sched/deadline.h
- kernel/sched/autogroup.c 3 additions, 6 deletionskernel/sched/autogroup.c
- kernel/sched/autogroup.h 0 additions, 4 deletionskernel/sched/autogroup.h
- kernel/sched/clock.c 1 addition, 13 deletionskernel/sched/clock.c
- kernel/sched/completion.c 1 addition, 4 deletionskernel/sched/completion.c
- kernel/sched/core.c 13 additions, 27 deletionskernel/sched/core.c
- kernel/sched/cpuacct.c 1 addition, 12 deletionskernel/sched/cpuacct.c
- kernel/sched/cpudeadline.c 1 addition, 4 deletionskernel/sched/cpudeadline.c
- kernel/sched/cpudeadline.h 0 additions, 2 deletionskernel/sched/cpudeadline.h
- kernel/sched/cpufreq.c 0 additions, 1 deletionkernel/sched/cpufreq.c
- kernel/sched/cpufreq_schedutil.c 2 additions, 6 deletionskernel/sched/cpufreq_schedutil.c
- kernel/sched/cpupri.c 1 addition, 5 deletionskernel/sched/cpupri.c
- kernel/sched/cpupri.h 0 additions, 1 deletionkernel/sched/cpupri.h
- kernel/sched/cputime.c 3 additions, 7 deletionskernel/sched/cputime.c
- kernel/sched/deadline.c 0 additions, 3 deletionskernel/sched/deadline.c
- kernel/sched/debug.c 1 addition, 10 deletionskernel/sched/debug.c
- kernel/sched/fair.c 1 addition, 15 deletionskernel/sched/fair.c
- kernel/sched/idle.c 1 addition, 14 deletionskernel/sched/idle.c
- kernel/sched/idle_task.c 2 additions, 3 deletionskernel/sched/idle_task.c
- kernel/sched/isolation.c 0 additions, 7 deletionskernel/sched/isolation.c
Please register or sign in to comment