Skip to content

Commit c4ad6fc

Browse files
author
Ingo Molnar
committed
sched/headers: Reorganize, clean up and optimize kernel/sched/fair.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 e66f648 commit c4ad6fc

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

kernel/sched/fair.c

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,35 @@
2020
* Adaptive scheduling granularity, math enhancements by Peter Zijlstra
2121
* Copyright (C) 2007 Red Hat, Inc., Peter Zijlstra
2222
*/
23+
#include <linux/energy_model.h>
24+
#include <linux/mmap_lock.h>
25+
#include <linux/hugetlb_inline.h>
26+
#include <linux/jiffies.h>
27+
#include <linux/mm_api.h>
28+
#include <linux/highmem.h>
29+
#include <linux/spinlock_api.h>
30+
#include <linux/cpumask_api.h>
31+
#include <linux/lockdep_api.h>
32+
#include <linux/softirq.h>
33+
#include <linux/refcount_api.h>
34+
#include <linux/topology.h>
35+
#include <linux/sched/clock.h>
36+
#include <linux/sched/cond_resched.h>
37+
#include <linux/sched/cputime.h>
38+
#include <linux/sched/isolation.h>
39+
40+
#include <linux/cpuidle.h>
41+
#include <linux/interrupt.h>
42+
#include <linux/mempolicy.h>
43+
#include <linux/mutex_api.h>
44+
#include <linux/profile.h>
45+
#include <linux/psi.h>
46+
#include <linux/ratelimit.h>
47+
48+
#include <asm/switch_to.h>
49+
50+
#include <linux/sched/cond_resched.h>
51+
2352
#include "sched.h"
2453
#include "stats.h"
2554
#include "autogroup.h"

0 commit comments

Comments
 (0)