sched/headers: Reorganize, clean up and optimize kernel/sched/build_utility.c depende...
[linux-block.git] / kernel / sched / build_utility.c
CommitLineData
801c1419
IM
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * These are various utility functions of the scheduler,
4 * built in a single compilation unit for build efficiency reasons.
5 *
6 * ( Incidentally, the size of the compilation unit is roughly
7 * comparable to core.c, fair.c, smp.c and policy.c, the other
8 * big compilation units. This helps balance build time, while
9 * coalescing source files to amortize header inclusion
10 * cost. )
11 */
e81daa7b
IM
12#include <linux/sched/clock.h>
13#include <linux/sched/cputime.h>
14#include <linux/sched/debug.h>
15#include <linux/sched/isolation.h>
16#include <linux/sched/loadavg.h>
17#include <linux/sched/mm.h>
18#include <linux/sched/rseq_api.h>
19#include <linux/sched/task_stack.h>
20
21#include <linux/cpufreq.h>
22#include <linux/cpumask_api.h>
23#include <linux/cpuset.h>
24#include <linux/ctype.h>
25#include <linux/debugfs.h>
26#include <linux/energy_model.h>
27#include <linux/hashtable_api.h>
28#include <linux/irq.h>
29#include <linux/kobject_api.h>
30#include <linux/membarrier.h>
31#include <linux/mempolicy.h>
32#include <linux/nmi.h>
33#include <linux/nospec.h>
34#include <linux/proc_fs.h>
35#include <linux/psi.h>
36#include <linux/psi.h>
37#include <linux/ptrace_api.h>
38#include <linux/sched_clock.h>
39#include <linux/security.h>
40#include <linux/spinlock_api.h>
41#include <linux/swait_api.h>
42#include <linux/timex.h>
43#include <linux/utsname.h>
44#include <linux/wait_api.h>
45#include <linux/workqueue_api.h>
46
47#ifdef CONFIG_PARAVIRT
48# include <asm/paravirt.h>
49#endif
50
51#include <uapi/linux/prctl.h>
52#include <uapi/linux/sched/types.h>
801c1419
IM
53
54#include "sched.h"
55#include "sched-pelt.h"
b9e9c6ca
IM
56#include "stats.h"
57#include "autogroup.h"
801c1419 58
801c1419
IM
59#include "clock.c"
60
61#ifdef CONFIG_CGROUP_CPUACCT
62# include "cpuacct.c"
63#endif
64
65#ifdef CONFIG_CPU_FREQ
66# include "cpufreq.c"
67#endif
68
69#ifdef CONFIG_CPU_FREQ_GOV_SCHEDUTIL
70# include "cpufreq_schedutil.c"
71#endif
72
73#ifdef CONFIG_SCHED_DEBUG
74# include "debug.c"
75#endif
76
77#ifdef CONFIG_SCHEDSTATS
78# include "stats.c"
79#endif
80
81#include "loadavg.c"
82#include "completion.c"
83#include "swait.c"
84#include "wait_bit.c"
85#include "wait.c"
86
87#ifdef CONFIG_SMP
88# include "cpupri.c"
89# include "stop_task.c"
90# include "topology.c"
91#endif
92
93#ifdef CONFIG_SCHED_CORE
94# include "core_sched.c"
95#endif
96
97#ifdef CONFIG_PSI
98# include "psi.c"
99#endif
100
101#ifdef CONFIG_MEMBARRIER
102# include "membarrier.c"
103#endif
104
105#ifdef CONFIG_CPU_ISOLATION
106# include "isolation.c"
107#endif
108
109#ifdef CONFIG_SCHED_AUTOGROUP
110# include "autogroup.c"
111#endif