diff options
Diffstat (limited to 'include/linux/init_task.h')
| -rw-r--r-- | include/linux/init_task.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/linux/init_task.h b/include/linux/init_task.h index b1ed1cd8e2a8..1f43fa56f600 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h | |||
| @@ -16,7 +16,7 @@ extern struct files_struct init_files; | |||
| 16 | extern struct fs_struct init_fs; | 16 | extern struct fs_struct init_fs; |
| 17 | 17 | ||
| 18 | #define INIT_SIGNALS(sig) { \ | 18 | #define INIT_SIGNALS(sig) { \ |
| 19 | .count = ATOMIC_INIT(1), \ | 19 | .nr_threads = 1, \ |
| 20 | .wait_chldexit = __WAIT_QUEUE_HEAD_INITIALIZER(sig.wait_chldexit),\ | 20 | .wait_chldexit = __WAIT_QUEUE_HEAD_INITIALIZER(sig.wait_chldexit),\ |
| 21 | .shared_pending = { \ | 21 | .shared_pending = { \ |
| 22 | .list = LIST_HEAD_INIT(sig.shared_pending.list), \ | 22 | .list = LIST_HEAD_INIT(sig.shared_pending.list), \ |
| @@ -35,7 +35,7 @@ extern struct nsproxy init_nsproxy; | |||
| 35 | 35 | ||
| 36 | #define INIT_SIGHAND(sighand) { \ | 36 | #define INIT_SIGHAND(sighand) { \ |
| 37 | .count = ATOMIC_INIT(1), \ | 37 | .count = ATOMIC_INIT(1), \ |
| 38 | .action = { { { .sa_handler = NULL, } }, }, \ | 38 | .action = { { { .sa_handler = SIG_DFL, } }, }, \ |
| 39 | .siglock = __SPIN_LOCK_UNLOCKED(sighand.siglock), \ | 39 | .siglock = __SPIN_LOCK_UNLOCKED(sighand.siglock), \ |
| 40 | .signalfd_wqh = __WAIT_QUEUE_HEAD_INITIALIZER(sighand.signalfd_wqh), \ | 40 | .signalfd_wqh = __WAIT_QUEUE_HEAD_INITIALIZER(sighand.signalfd_wqh), \ |
| 41 | } | 41 | } |
| @@ -45,11 +45,10 @@ extern struct group_info init_groups; | |||
| 45 | #define INIT_STRUCT_PID { \ | 45 | #define INIT_STRUCT_PID { \ |
| 46 | .count = ATOMIC_INIT(1), \ | 46 | .count = ATOMIC_INIT(1), \ |
| 47 | .tasks = { \ | 47 | .tasks = { \ |
| 48 | { .first = &init_task.pids[PIDTYPE_PID].node }, \ | 48 | { .first = NULL }, \ |
| 49 | { .first = &init_task.pids[PIDTYPE_PGID].node }, \ | 49 | { .first = NULL }, \ |
| 50 | { .first = &init_task.pids[PIDTYPE_SID].node }, \ | 50 | { .first = NULL }, \ |
| 51 | }, \ | 51 | }, \ |
| 52 | .rcu = RCU_HEAD_INIT, \ | ||
| 53 | .level = 0, \ | 52 | .level = 0, \ |
| 54 | .numbers = { { \ | 53 | .numbers = { { \ |
| 55 | .nr = 0, \ | 54 | .nr = 0, \ |
| @@ -62,7 +61,7 @@ extern struct group_info init_groups; | |||
| 62 | { \ | 61 | { \ |
| 63 | .node = { \ | 62 | .node = { \ |
| 64 | .next = NULL, \ | 63 | .next = NULL, \ |
| 65 | .pprev = &init_struct_pid.tasks[type].first, \ | 64 | .pprev = NULL, \ |
| 66 | }, \ | 65 | }, \ |
| 67 | .pid = &init_struct_pid, \ | 66 | .pid = &init_struct_pid, \ |
| 68 | } | 67 | } |
| @@ -164,6 +163,7 @@ extern struct cred init_cred; | |||
| 164 | [PIDTYPE_PGID] = INIT_PID_LINK(PIDTYPE_PGID), \ | 163 | [PIDTYPE_PGID] = INIT_PID_LINK(PIDTYPE_PGID), \ |
| 165 | [PIDTYPE_SID] = INIT_PID_LINK(PIDTYPE_SID), \ | 164 | [PIDTYPE_SID] = INIT_PID_LINK(PIDTYPE_SID), \ |
| 166 | }, \ | 165 | }, \ |
| 166 | .thread_group = LIST_HEAD_INIT(tsk.thread_group), \ | ||
| 167 | .dirties = INIT_PROP_LOCAL_SINGLE(dirties), \ | 167 | .dirties = INIT_PROP_LOCAL_SINGLE(dirties), \ |
| 168 | INIT_IDS \ | 168 | INIT_IDS \ |
| 169 | INIT_PERF_EVENTS(tsk) \ | 169 | INIT_PERF_EVENTS(tsk) \ |
| @@ -183,7 +183,7 @@ extern struct cred init_cred; | |||
| 183 | } | 183 | } |
| 184 | 184 | ||
| 185 | /* Attach to the init_task data structure for proper alignment */ | 185 | /* Attach to the init_task data structure for proper alignment */ |
| 186 | #define __init_task_data __attribute__((__section__(".data.init_task"))) | 186 | #define __init_task_data __attribute__((__section__(".data..init_task"))) |
| 187 | 187 | ||
| 188 | 188 | ||
| 189 | #endif | 189 | #endif |
