mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 21:51:40 +00:00
801c141955
Collect all utility functionality source code files into a single kernel/sched/build_utility.c file, via #include-ing the .c files: kernel/sched/clock.c kernel/sched/completion.c kernel/sched/loadavg.c kernel/sched/swait.c kernel/sched/wait_bit.c kernel/sched/wait.c CONFIG_CPU_FREQ: kernel/sched/cpufreq.c CONFIG_CPU_FREQ_GOV_SCHEDUTIL: kernel/sched/cpufreq_schedutil.c CONFIG_CGROUP_CPUACCT: kernel/sched/cpuacct.c CONFIG_SCHED_DEBUG: kernel/sched/debug.c CONFIG_SCHEDSTATS: kernel/sched/stats.c CONFIG_SMP: kernel/sched/cpupri.c kernel/sched/stop_task.c kernel/sched/topology.c CONFIG_SCHED_CORE: kernel/sched/core_sched.c CONFIG_PSI: kernel/sched/psi.c CONFIG_MEMBARRIER: kernel/sched/membarrier.c CONFIG_CPU_ISOLATION: kernel/sched/isolation.c CONFIG_SCHED_AUTOGROUP: kernel/sched/autogroup.c The goal is to amortize the 60+ KLOC header bloat from over a dozen build units into a single build unit. The build time of build_utility.c also roughly matches the build time of core.c and fair.c - allowing better load-balancing of scheduler-only rebuilds. Signed-off-by: Ingo Molnar <mingo@kernel.org> Reviewed-by: Peter Zijlstra <peterz@infradead.org>
71 lines
1.3 KiB
C
71 lines
1.3 KiB
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* These are various utility functions of the scheduler,
|
|
* built in a single compilation unit for build efficiency reasons.
|
|
*
|
|
* ( Incidentally, the size of the compilation unit is roughly
|
|
* comparable to core.c, fair.c, smp.c and policy.c, the other
|
|
* big compilation units. This helps balance build time, while
|
|
* coalescing source files to amortize header inclusion
|
|
* cost. )
|
|
*/
|
|
|
|
#include "sched.h"
|
|
#include "sched-pelt.h"
|
|
|
|
#include <linux/sched_clock.h>
|
|
|
|
#include "clock.c"
|
|
|
|
#ifdef CONFIG_CGROUP_CPUACCT
|
|
# include "cpuacct.c"
|
|
#endif
|
|
|
|
#ifdef CONFIG_CPU_FREQ
|
|
# include "cpufreq.c"
|
|
#endif
|
|
|
|
#ifdef CONFIG_CPU_FREQ_GOV_SCHEDUTIL
|
|
# include "cpufreq_schedutil.c"
|
|
#endif
|
|
|
|
#ifdef CONFIG_SCHED_DEBUG
|
|
# include "debug.c"
|
|
#endif
|
|
|
|
#ifdef CONFIG_SCHEDSTATS
|
|
# include "stats.c"
|
|
#endif
|
|
|
|
#include "loadavg.c"
|
|
#include "completion.c"
|
|
#include "swait.c"
|
|
#include "wait_bit.c"
|
|
#include "wait.c"
|
|
|
|
#ifdef CONFIG_SMP
|
|
# include "cpupri.c"
|
|
# include "stop_task.c"
|
|
# include "topology.c"
|
|
#endif
|
|
|
|
#ifdef CONFIG_SCHED_CORE
|
|
# include "core_sched.c"
|
|
#endif
|
|
|
|
#ifdef CONFIG_PSI
|
|
# include "psi.c"
|
|
#endif
|
|
|
|
#ifdef CONFIG_MEMBARRIER
|
|
# include "membarrier.c"
|
|
#endif
|
|
|
|
#ifdef CONFIG_CPU_ISOLATION
|
|
# include "isolation.c"
|
|
#endif
|
|
|
|
#ifdef CONFIG_SCHED_AUTOGROUP
|
|
# include "autogroup.c"
|
|
#endif
|