diff options
author | Ingo Molnar <mingo@kernel.org> | 2022-02-13 08:19:43 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2022-02-23 10:58:33 +0100 |
commit | b9e9c6ca6e54b5d58a57663f76c5cb33c12ea98f (patch) | |
tree | 8c22f2d79b3842254f6deb44f222e1583780655d /kernel/sched/build_utility.c | |
parent | sched/headers: Introduce kernel/sched/build_policy.c and build multiple .c fi... (diff) | |
download | linux-b9e9c6ca6e54b5d58a57663f76c5cb33c12ea98f.tar.gz linux-b9e9c6ca6e54b5d58a57663f76c5cb33c12ea98f.tar.bz2 linux-b9e9c6ca6e54b5d58a57663f76c5cb33c12ea98f.zip |
sched/headers: Standardize kernel/sched/sched.h header dependencies
kernel/sched/sched.h is a weird mix of ad-hoc headers included
in the middle of the header.
Two of them rely on being included in the middle of kernel/sched/sched.h,
due to definitions they require:
- "stat.h" needs the rq definitions.
- "autogroup.h" needs the task_group definition.
Move the inclusion of these two files out of kernel/sched/sched.h, and
include them in all files that require them.
Move of the rest of the header dependencies to the top of the
kernel/sched/sched.h file.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Peter Zijlstra <peterz@infradead.org>
Diffstat (limited to 'kernel/sched/build_utility.c')
-rw-r--r-- | kernel/sched/build_utility.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched/build_utility.c b/kernel/sched/build_utility.c index 31216ce0b4b3..8b2b199983bf 100644 --- a/kernel/sched/build_utility.c +++ b/kernel/sched/build_utility.c @@ -12,6 +12,8 @@ #include "sched.h" #include "sched-pelt.h" +#include "stats.h" +#include "autogroup.h" #include <linux/sched_clock.h> |