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
12 * core.c and fair.c are built separately.12 * core.c and fair.c are built separately.
13 */13 */
14 14
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
15#include "sched.h"37#include "sched.h"
16 38
17#include "autogroup.h"39#include "autogroup.h"
18#include "stats.h"40#include "stats.h"
19#include "pelt.h"41#include "pelt.h"
20 42
43/* Source code modules: */
44
21#include "idle.c"45#include "idle.c"
22 46
23#include "rt.c"47#include "rt.c"