Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | #ifndef _LINUX__INIT_TASK_H |
| 3 | #define _LINUX__INIT_TASK_H |
| 4 | |
Dipankar Sarma | ab2af1f | 2005-09-09 13:04:13 -0700 | [diff] [blame] | 5 | #include <linux/rcupdate.h> |
Ingo Molnar | de30a2b | 2006-07-03 00:24:42 -0700 | [diff] [blame] | 6 | #include <linux/irqflags.h> |
Serge E. Hallyn | 4865ecf | 2006-10-02 02:18:14 -0700 | [diff] [blame] | 7 | #include <linux/utsname.h> |
Ingo Molnar | fbb9ce95 | 2006-07-03 00:24:50 -0700 | [diff] [blame] | 8 | #include <linux/lockdep.h> |
Steven Rostedt | 5ac9f62 | 2009-03-25 20:55:00 -0400 | [diff] [blame] | 9 | #include <linux/ftrace.h> |
Kirill Korotaev | 73ea413 | 2006-10-02 02:18:20 -0700 | [diff] [blame] | 10 | #include <linux/ipc.h> |
Cedric Le Goater | 9a575a9 | 2006-12-08 02:37:59 -0800 | [diff] [blame] | 11 | #include <linux/pid_namespace.h> |
Cedric Le Goater | acce292 | 2007-07-15 23:40:59 -0700 | [diff] [blame] | 12 | #include <linux/user_namespace.h> |
Andrew G. Morgan | 3898b1b | 2008-04-28 02:13:40 -0700 | [diff] [blame] | 13 | #include <linux/securebits.h> |
Frederic Weisbecker | 6a61671 | 2012-12-16 20:00:34 +0100 | [diff] [blame] | 14 | #include <linux/seqlock.h> |
Peter Zijlstra | fb00aca | 2013-11-07 14:43:43 +0100 | [diff] [blame] | 15 | #include <linux/rbtree.h> |
Elena Reshetova | f0b89d3 | 2019-01-18 14:27:30 +0200 | [diff] [blame] | 16 | #include <linux/refcount.h> |
Ingo Molnar | dfc3401 | 2017-02-03 23:15:21 +0100 | [diff] [blame] | 17 | #include <linux/sched/autogroup.h> |
Eric W. Biederman | 772698f | 2007-09-12 11:55:17 +0200 | [diff] [blame] | 18 | #include <net/net_namespace.h> |
Ingo Molnar | 77852fe | 2013-02-16 09:46:48 +0100 | [diff] [blame] | 19 | #include <linux/sched/rt.h> |
Josh Poimboeuf | d83a7cb | 2017-02-13 19:42:40 -0600 | [diff] [blame] | 20 | #include <linux/livepatch.h> |
Ingo Molnar | 589ee62 | 2017-02-04 00:16:44 +0100 | [diff] [blame] | 21 | #include <linux/mm_types.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | |
Andy Lutomirski | c65eacb | 2016-09-13 14:29:24 -0700 | [diff] [blame] | 23 | #include <asm/thread_info.h> |
| 24 | |
Al Viro | f52111b | 2008-05-08 18:19:16 -0400 | [diff] [blame] | 25 | extern struct files_struct init_files; |
Al Viro | 18d8fda | 2008-12-26 00:35:37 -0500 | [diff] [blame] | 26 | extern struct fs_struct init_fs; |
David Howells | 3678e2f | 2018-01-02 15:12:01 +0000 | [diff] [blame] | 27 | extern struct nsproxy init_nsproxy; |
| 28 | extern struct group_info init_groups; |
| 29 | extern struct cred init_cred; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | |
Peter Zijlstra | 9d7fb04 | 2015-06-30 11:30:54 +0200 | [diff] [blame] | 31 | #ifndef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE |
| 32 | #define INIT_PREV_CPUTIME(x) .prev_cputime = { \ |
| 33 | .lock = __RAW_SPIN_LOCK_UNLOCKED(x.prev_cputime.lock), \ |
| 34 | }, |
| 35 | #else |
| 36 | #define INIT_PREV_CPUTIME(x) |
| 37 | #endif |
| 38 | |
Carsten Emde | f1c6f1a | 2011-10-26 23:14:16 +0200 | [diff] [blame] | 39 | #define INIT_TASK_COMM "swapper" |
| 40 | |
Tim Abbott | 857ecee | 2009-06-23 19:59:36 -0400 | [diff] [blame] | 41 | /* Attach to the init_task data structure for proper alignment */ |
David Howells | d11ed3a | 2018-01-02 15:12:01 +0000 | [diff] [blame] | 42 | #ifdef CONFIG_ARCH_TASK_STRUCT_ON_STACK |
Tim Abbott | 2af7687 | 2010-02-20 01:03:35 +0100 | [diff] [blame] | 43 | #define __init_task_data __attribute__((__section__(".data..init_task"))) |
David Howells | d11ed3a | 2018-01-02 15:12:01 +0000 | [diff] [blame] | 44 | #else |
| 45 | #define __init_task_data /**/ |
| 46 | #endif |
Tim Abbott | 857ecee | 2009-06-23 19:59:36 -0400 | [diff] [blame] | 47 | |
David Howells | 0500871 | 2018-01-02 15:12:01 +0000 | [diff] [blame] | 48 | /* Attach to the thread_info data structure for proper alignment */ |
| 49 | #define __init_thread_info __attribute__((__section__(".data..init_thread_info"))) |
| 50 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 51 | #endif |