Skip to content

Commit 0dda4ee

Browse files
author
Ingo Molnar
committed
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. Signed-off-by: Ingo Molnar <[email protected]> Reviewed-by: Peter Zijlstra <[email protected]>
1 parent c4ad6fc commit 0dda4ee

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

kernel/sched/build_policy.c

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,36 @@
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"

0 commit comments

Comments
 (0)