Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
1da177e4 LT |
2 | #ifndef _LINUX__INIT_TASK_H |
3 | #define _LINUX__INIT_TASK_H | |
4 | ||
ab2af1f5 | 5 | #include <linux/rcupdate.h> |
de30a2b3 | 6 | #include <linux/irqflags.h> |
4865ecf1 | 7 | #include <linux/utsname.h> |
fbb9ce95 | 8 | #include <linux/lockdep.h> |
5ac9f622 | 9 | #include <linux/ftrace.h> |
73ea4130 | 10 | #include <linux/ipc.h> |
9a575a92 | 11 | #include <linux/pid_namespace.h> |
acce292c | 12 | #include <linux/user_namespace.h> |
3898b1b4 | 13 | #include <linux/securebits.h> |
6a61671b | 14 | #include <linux/seqlock.h> |
fb00aca4 | 15 | #include <linux/rbtree.h> |
f0b89d39 | 16 | #include <linux/refcount.h> |
dfc3401a | 17 | #include <linux/sched/autogroup.h> |
772698f6 | 18 | #include <net/net_namespace.h> |
77852fea | 19 | #include <linux/sched/rt.h> |
d83a7cb3 | 20 | #include <linux/livepatch.h> |
589ee628 | 21 | #include <linux/mm_types.h> |
1da177e4 | 22 | |
c65eacbe AL |
23 | #include <asm/thread_info.h> |
24 | ||
f52111b1 | 25 | extern struct files_struct init_files; |
18d8fda7 | 26 | extern struct fs_struct init_fs; |
3678e2fc | 27 | extern struct nsproxy init_nsproxy; |
3678e2fc | 28 | extern struct cred init_cred; |
1da177e4 | 29 | |
9d7fb042 PZ |
30 | #ifndef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE |
31 | #define INIT_PREV_CPUTIME(x) .prev_cputime = { \ | |
32 | .lock = __RAW_SPIN_LOCK_UNLOCKED(x.prev_cputime.lock), \ | |
33 | }, | |
34 | #else | |
35 | #define INIT_PREV_CPUTIME(x) | |
36 | #endif | |
37 | ||
f1c6f1a7 CE |
38 | #define INIT_TASK_COMM "swapper" |
39 | ||
857eceeb | 40 | /* Attach to the init_task data structure for proper alignment */ |
d11ed3ab | 41 | #ifdef CONFIG_ARCH_TASK_STRUCT_ON_STACK |
33def849 | 42 | #define __init_task_data __section(".data..init_task") |
d11ed3ab DH |
43 | #else |
44 | #define __init_task_data /**/ | |
45 | #endif | |
857eceeb | 46 | |
0500871f | 47 | /* Attach to the thread_info data structure for proper alignment */ |
33def849 | 48 | #define __init_thread_info __section(".data..init_thread_info") |
0500871f | 49 | |
1da177e4 | 50 | #endif |