hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/include/linux/init_task.h
....@@ -13,6 +13,7 @@
1313 #include <linux/securebits.h>
1414 #include <linux/seqlock.h>
1515 #include <linux/rbtree.h>
16
+#include <linux/refcount.h>
1617 #include <linux/sched/autogroup.h>
1718 #include <net/net_namespace.h>
1819 #include <linux/sched/rt.h>
....@@ -35,27 +36,16 @@
3536 #define INIT_PREV_CPUTIME(x)
3637 #endif
3738
38
-#ifdef CONFIG_POSIX_TIMERS
39
-#define INIT_CPU_TIMERS(s) \
40
- .cpu_timers = { \
41
- LIST_HEAD_INIT(s.cpu_timers[0]), \
42
- LIST_HEAD_INIT(s.cpu_timers[1]), \
43
- LIST_HEAD_INIT(s.cpu_timers[2]), \
44
- },
45
-#else
46
-#define INIT_CPU_TIMERS(s)
47
-#endif
48
-
4939 #define INIT_TASK_COMM "swapper"
5040
5141 /* Attach to the init_task data structure for proper alignment */
5242 #ifdef CONFIG_ARCH_TASK_STRUCT_ON_STACK
53
-#define __init_task_data __attribute__((__section__(".data..init_task")))
43
+#define __init_task_data __section(".data..init_task")
5444 #else
5545 #define __init_task_data /**/
5646 #endif
5747
5848 /* Attach to the thread_info data structure for proper alignment */
59
-#define __init_thread_info __attribute__((__section__(".data..init_thread_info")))
49
+#define __init_thread_info __section(".data..init_thread_info")
6050
6151 #endif