diff options
Diffstat (limited to 'include/linux/init_task.h')
-rw-r--r-- | include/linux/init_task.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/init_task.h b/include/linux/init_task.h index 6d087c5f57f7..5cd0f0949927 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h | |||
@@ -10,7 +10,9 @@ | |||
10 | #include <linux/pid_namespace.h> | 10 | #include <linux/pid_namespace.h> |
11 | #include <linux/user_namespace.h> | 11 | #include <linux/user_namespace.h> |
12 | #include <linux/securebits.h> | 12 | #include <linux/securebits.h> |
13 | #include <linux/seqlock.h> | ||
13 | #include <net/net_namespace.h> | 14 | #include <net/net_namespace.h> |
15 | #include <linux/sched/rt.h> | ||
14 | 16 | ||
15 | #ifdef CONFIG_SMP | 17 | #ifdef CONFIG_SMP |
16 | # define INIT_PUSHABLE_TASKS(tsk) \ | 18 | # define INIT_PUSHABLE_TASKS(tsk) \ |
@@ -141,6 +143,15 @@ extern struct task_group root_task_group; | |||
141 | # define INIT_PERF_EVENTS(tsk) | 143 | # define INIT_PERF_EVENTS(tsk) |
142 | #endif | 144 | #endif |
143 | 145 | ||
146 | #ifdef CONFIG_VIRT_CPU_ACCOUNTING_GEN | ||
147 | # define INIT_VTIME(tsk) \ | ||
148 | .vtime_seqlock = __SEQLOCK_UNLOCKED(tsk.vtime_seqlock), \ | ||
149 | .vtime_snap = 0, \ | ||
150 | .vtime_snap_whence = VTIME_SYS, | ||
151 | #else | ||
152 | # define INIT_VTIME(tsk) | ||
153 | #endif | ||
154 | |||
144 | #define INIT_TASK_COMM "swapper" | 155 | #define INIT_TASK_COMM "swapper" |
145 | 156 | ||
146 | /* | 157 | /* |
@@ -210,6 +221,7 @@ extern struct task_group root_task_group; | |||
210 | INIT_TRACE_RECURSION \ | 221 | INIT_TRACE_RECURSION \ |
211 | INIT_TASK_RCU_PREEMPT(tsk) \ | 222 | INIT_TASK_RCU_PREEMPT(tsk) \ |
212 | INIT_CPUSET_SEQ \ | 223 | INIT_CPUSET_SEQ \ |
224 | INIT_VTIME(tsk) \ | ||
213 | } | 225 | } |
214 | 226 | ||
215 | 227 | ||