diff options
author | Ingo Molnar <mingo@kernel.org> | 2022-02-13 10:19:43 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2022-02-23 12:58:33 +0300 |
commit | b9e9c6ca6e54b5d58a57663f76c5cb33c12ea98f (patch) | |
tree | 8c22f2d79b3842254f6deb44f222e1583780655d /kernel/sched/stats.h | |
parent | f96eca432015ddc1b621632488ebc345bca06791 (diff) | |
download | linux-b9e9c6ca6e54b5d58a57663f76c5cb33c12ea98f.tar.xz |
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/stats.h')
-rw-r--r-- | kernel/sched/stats.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched/stats.h b/kernel/sched/stats.h index edc0d13fc61b..a0df79e6038c 100644 --- a/kernel/sched/stats.h +++ b/kernel/sched/stats.h @@ -2,10 +2,10 @@ #ifndef _KERNEL_STATS_H #define _KERNEL_STATS_H -#ifdef CONFIG_SCHEDSTATS - #include "sched.h" +#ifdef CONFIG_SCHEDSTATS + extern struct static_key_false sched_schedstats; /* |