History

sched/headers: Reorganize, clean up and optimize kernel/sched/build_policy.c dependencies

Use all generic headers from kernel/sched/sched.h that are required for it to build. Sort the sections alphabetically.

Ingo Molnar committed 5 years ago

Commit 0dda4ee1 parent c4ad6fc1 file · +24 −0Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/sched/build_policy.c+24−0
@@ -12,12 +12,36 @@ · 11 unmodified lines
1212 * core.c and fair.c are built separately.
1313 */
1414
15+/* Headers: */
16+#include <linux/sched/clock.h>
17+#include <linux/sched/cputime.h>
18+#include <linux/sched/posix-timers.h>
19+#include <linux/sched/rt.h>
20+
21+#include <linux/cpuidle.h>
22+#include <linux/jiffies.h>
23+#include <linux/livepatch.h>
24+#include <linux/psi.h>
25+#include <linux/seqlock_api.h>
26+#include <linux/slab.h>
27+#include <linux/suspend.h>
28+#include <linux/tsacct_kern.h>
29+#include <linux/vtime.h>
30+
31+#ifdef CONFIG_PARAVIRT
32+# include <asm/paravirt.h>
33+#endif
34+
35+#include <uapi/linux/sched/types.h>
36+
1537 #include "sched.h"
1638
1739 #include "autogroup.h"
1840 #include "stats.h"
1941 #include "pelt.h"
2042
43+/* Source code modules: */
44+
2145 #include "idle.c"
2246
2347 #include "rt.c"