|
5 | 5 | #ifndef _KERNEL_SCHED_SCHED_H
|
6 | 6 | #define _KERNEL_SCHED_SCHED_H
|
7 | 7 |
|
8 |
| -#include <linux/sched.h> |
9 |
| -#include <linux/cpumask.h> |
10 |
| -#include <linux/ktime_api.h> |
11 |
| -#include <linux/cgroup_api.h> |
12 |
| -#include <linux/topology.h> |
13 |
| -#include <linux/prctl.h> |
14 |
| -#include <linux/ptrace_api.h> |
15 |
| -#include <linux/gfp_api.h> |
16 |
| -#include <linux/posix-timers.h> |
17 |
| -#include <linux/sched/clock.h> |
18 |
| -#include <linux/workqueue_api.h> |
19 |
| -#include <linux/tick.h> |
20 |
| -#include <linux/ktime_api.h> |
21 |
| -#include <linux/swait_api.h> |
22 |
| -#include <linux/hashtable_api.h> |
23 |
| -#include <linux/cpufreq.h> |
24 |
| -#include <linux/utsname.h> |
25 |
| - |
26 |
| -#include <asm/irq_regs.h> |
27 |
| - |
28 | 8 | #include <linux/sched/affinity.h>
|
29 | 9 | #include <linux/sched/autogroup.h>
|
30 |
| -#include <linux/sched/clock.h> |
31 |
| -#include <linux/sched/coredump.h> |
32 | 10 | #include <linux/sched/cpufreq.h>
|
33 |
| -#include <linux/sched/cputime.h> |
34 | 11 | #include <linux/sched/deadline.h>
|
35 |
| -#include <linux/sched/debug.h> |
36 |
| -#include <linux/sched/hotplug.h> |
37 |
| -#include <linux/sched/idle.h> |
38 |
| -#include <linux/sched/init.h> |
39 |
| -#include <linux/sched/isolation.h> |
40 |
| -#include <linux/sched/jobctl.h> |
| 12 | +#include <linux/sched.h> |
41 | 13 | #include <linux/sched/loadavg.h>
|
42 | 14 | #include <linux/sched/mm.h>
|
43 |
| -#include <linux/sched/nohz.h> |
44 |
| -#include <linux/sched/numa_balancing.h> |
45 |
| -#include <linux/sched/prio.h> |
46 | 15 | #include <linux/sched/rseq_api.h>
|
47 |
| -#include <linux/sched/rt.h> |
48 | 16 | #include <linux/sched/signal.h>
|
49 | 17 | #include <linux/sched/smt.h>
|
50 | 18 | #include <linux/sched/stat.h>
|
51 | 19 | #include <linux/sched/sysctl.h>
|
| 20 | +#include <linux/sched/task_flags.h> |
52 | 21 | #include <linux/sched/task.h>
|
53 |
| -#include <linux/sched/task_stack.h> |
54 |
| -#include <linux/sched/thread_info_api.h> |
55 | 22 | #include <linux/sched/topology.h>
|
56 |
| -#include <linux/sched/user.h> |
57 |
| -#include <linux/sched/wake_q.h> |
58 |
| -#include <linux/sched/xacct.h> |
59 |
| - |
60 |
| -#include <uapi/linux/sched/types.h> |
61 |
| - |
62 |
| -#include <linux/binfmts.h> |
63 |
| -#include <linux/bitops.h> |
64 |
| -#include <linux/compat.h> |
65 |
| -#include <linux/context_tracking.h> |
66 |
| -#include <linux/cpufreq.h> |
67 |
| -#include <linux/cpuidle.h> |
68 |
| -#include <linux/cpuset.h> |
69 |
| -#include <linux/ctype.h> |
70 |
| -#include <linux/debugfs.h> |
71 |
| -#include <linux/delayacct.h> |
72 |
| -#include <linux/energy_model.h> |
73 |
| -#include <linux/init_task.h> |
74 |
| -#include <linux/kprobes.h> |
75 |
| -#include <linux/kthread.h> |
76 |
| -#include <linux/membarrier.h> |
77 |
| -#include <linux/migrate.h> |
78 |
| -#include <linux/mmu_context.h> |
79 |
| -#include <linux/nmi.h> |
80 |
| -#include <linux/proc_fs.h> |
81 |
| -#include <linux/prefetch.h> |
82 |
| -#include <linux/profile.h> |
83 |
| -#include <linux/psi.h> |
84 |
| -#include <linux/ratelimit.h> |
85 |
| -#include <linux/rcupdate_wait.h> |
86 |
| -#include <linux/security.h> |
87 |
| -#include <linux/stop_machine.h> |
88 |
| -#include <linux/suspend.h> |
89 |
| -#include <linux/swait.h> |
90 |
| -#include <linux/syscalls.h> |
91 |
| -#include <linux/task_work.h> |
92 |
| -#include <linux/tsacct_kern.h> |
93 |
| -#include <linux/hrtimer_api.h> |
94 |
| - |
95 |
| -#ifdef CONFIG_PARAVIRT |
96 |
| -# include <asm/paravirt.h> |
97 |
| -#endif |
98 |
| - |
99 |
| -#include <trace/events/sched.h> |
100 |
| - |
101 |
| -#ifdef CONFIG_CGROUP_SCHED |
102 |
| -#include <linux/cgroup.h> |
103 |
| -#include <linux/psi.h> |
104 |
| -#endif |
105 |
| - |
106 |
| -#ifdef CONFIG_SCHED_DEBUG |
107 |
| -# include <linux/static_key.h> |
108 |
| -#endif |
109 |
| - |
110 |
| -#include "cpupri.h" |
111 |
| -#include "cpudeadline.h" |
112 |
| - |
113 |
| -#ifdef CONFIG_SCHED_DEBUG |
114 |
| -# define SCHED_WARN_ON(x) WARN_ONCE(x, #x) |
115 |
| -#else |
116 |
| -# define SCHED_WARN_ON(x) ({ (void)(x), 0; }) |
117 |
| -#endif |
118 | 23 |
|
| 24 | +#include <linux/atomic.h> |
119 | 25 | #include <linux/bitmap.h>
|
| 26 | +#include <linux/bug.h> |
120 | 27 | #include <linux/capability.h>
|
| 28 | +#include <linux/cgroup_api.h> |
121 | 29 | #include <linux/cgroup.h>
|
122 | 30 | #include <linux/cpufreq.h>
|
123 | 31 | #include <linux/cpumask_api.h>
|
124 | 32 | #include <linux/ctype.h>
|
125 | 33 | #include <linux/file.h>
|
| 34 | +#include <linux/fs_api.h> |
126 | 35 | #include <linux/hrtimer_api.h>
|
127 | 36 | #include <linux/interrupt.h>
|
| 37 | +#include <linux/irq_work.h> |
128 | 38 | #include <linux/jiffies.h>
|
129 | 39 | #include <linux/kref_api.h>
|
| 40 | +#include <linux/kthread.h> |
130 | 41 | #include <linux/ktime_api.h>
|
131 | 42 | #include <linux/lockdep_api.h>
|
| 43 | +#include <linux/lockdep.h> |
| 44 | +#include <linux/minmax.h> |
| 45 | +#include <linux/mm.h> |
132 | 46 | #include <linux/module.h>
|
133 | 47 | #include <linux/mutex_api.h>
|
| 48 | +#include <linux/plist.h> |
134 | 49 | #include <linux/poll.h>
|
135 | 50 | #include <linux/proc_fs.h>
|
| 51 | +#include <linux/profile.h> |
136 | 52 | #include <linux/psi.h>
|
137 |
| -#include <linux/sched/affinity.h> |
138 |
| -#include <linux/sched.h> |
139 |
| -#include <linux/sched/loadavg.h> |
140 |
| -#include <linux/sched/mm.h> |
141 |
| -#include <linux/sched/rseq_api.h> |
142 |
| -#include <linux/sched/signal.h> |
| 53 | +#include <linux/rcupdate.h> |
143 | 54 | #include <linux/seq_file.h>
|
144 | 55 | #include <linux/seqlock.h>
|
145 | 56 | #include <linux/softirq.h>
|
146 | 57 | #include <linux/spinlock_api.h>
|
| 58 | +#include <linux/static_key.h> |
| 59 | +#include <linux/stop_machine.h> |
147 | 60 | #include <linux/syscalls_api.h>
|
148 | 61 | #include <linux/syscalls.h>
|
| 62 | +#include <linux/tick.h> |
149 | 63 | #include <linux/topology.h>
|
150 | 64 | #include <linux/types.h>
|
151 | 65 | #include <linux/u64_stats_sync_api.h>
|
152 | 66 | #include <linux/uaccess.h>
|
153 | 67 | #include <linux/wait_api.h>
|
| 68 | +#include <linux/wait_bit.h> |
154 | 69 | #include <linux/workqueue_api.h>
|
155 | 70 |
|
156 | 71 | #include <trace/events/power.h>
|
| 72 | +#include <trace/events/sched.h> |
157 | 73 |
|
158 | 74 | #include "../workqueue_internal.h"
|
159 | 75 |
|
| 76 | +#ifdef CONFIG_CGROUP_SCHED |
| 77 | +#include <linux/cgroup.h> |
| 78 | +#include <linux/psi.h> |
| 79 | +#endif |
| 80 | + |
| 81 | +#ifdef CONFIG_SCHED_DEBUG |
| 82 | +# include <linux/static_key.h> |
| 83 | +#endif |
| 84 | + |
| 85 | +#ifdef CONFIG_PARAVIRT |
| 86 | +# include <asm/paravirt.h> |
| 87 | +# include <asm/paravirt_api_clock.h> |
| 88 | +#endif |
| 89 | + |
| 90 | +#include "cpupri.h" |
| 91 | +#include "cpudeadline.h" |
| 92 | + |
| 93 | +#ifdef CONFIG_SCHED_DEBUG |
| 94 | +# define SCHED_WARN_ON(x) WARN_ONCE(x, #x) |
| 95 | +#else |
| 96 | +# define SCHED_WARN_ON(x) ({ (void)(x), 0; }) |
| 97 | +#endif |
| 98 | + |
160 | 99 | struct rq;
|
161 | 100 | struct cpuidle_state;
|
162 | 101 |
|
@@ -1925,6 +1864,8 @@ extern void flush_smp_call_function_from_idle(void);
|
1925 | 1864 | static inline void flush_smp_call_function_from_idle(void) { }
|
1926 | 1865 | #endif
|
1927 | 1866 |
|
| 1867 | +#include "stats.h" |
| 1868 | + |
1928 | 1869 | #if defined(CONFIG_SCHED_CORE) && defined(CONFIG_SCHEDSTATS)
|
1929 | 1870 |
|
1930 | 1871 | extern void __sched_core_account_forceidle(struct rq *rq);
|
|
0 commit comments