diff options
author | Ingo Molnar <mingo@kernel.org> | 2022-02-22 15:46:03 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2022-02-23 12:58:33 +0300 |
commit | f96eca432015ddc1b621632488ebc345bca06791 (patch) | |
tree | 1ce91e0bbe86169d44e43e1eab18d1ef06a975b8 /kernel/sched/build_policy.c | |
parent | 801c141955108fb7cf1244dda76e6de8b16fd3ae (diff) | |
download | linux-f96eca432015ddc1b621632488ebc345bca06791.tar.xz |
sched/headers: Introduce kernel/sched/build_policy.c and build multiple .c files there
Similarly to kernel/sched/build_utility.c, collect all 'scheduling policy' related
source code files into kernel/sched/build_policy.c:
kernel/sched/idle.c
kernel/sched/rt.c
kernel/sched/cpudeadline.c
kernel/sched/pelt.c
kernel/sched/cputime.c
kernel/sched/deadline.c
With the exception of fair.c, which we continue to build as a separate file
for build efficiency and parallelism reasons.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Peter Zijlstra <peterz@infradead.org>
Diffstat (limited to 'kernel/sched/build_policy.c')
-rw-r--r-- | kernel/sched/build_policy.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/kernel/sched/build_policy.c b/kernel/sched/build_policy.c new file mode 100644 index 000000000000..6bb384ddcfab --- /dev/null +++ b/kernel/sched/build_policy.c @@ -0,0 +1,29 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * These are the scheduling policy related scheduler files, built + * in a single compilation unit for build efficiency reasons. + * + * ( Incidentally, the size of the compilation unit is roughly + * comparable to core.c and fair.c, the other two big + * compilation units. This helps balance build time, while + * coalescing source files to amortize header inclusion + * cost. ) + * + * core.c and fair.c are built separately. + */ + +#include "sched.h" +#include "pelt.h" + +#include "idle.c" + +#include "rt.c" + +#ifdef CONFIG_SMP +# include "cpudeadline.c" +# include "pelt.c" +#endif + +#include "cputime.c" +#include "deadline.c" + |