diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-03-09 13:55:17 -0500 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-03-09 13:55:17 -0500 |
| commit | b675b3667f6729dcd1036a2a129b35445947f905 (patch) | |
| tree | 0d58791e9063d3ca2c352da6f3e7df2bdb876f9d /include/linux/init_task.h | |
| parent | 104a5f3cad8f2f27cadbdf0029400ecd9e17ccc0 (diff) | |
| parent | 192cfd58774b4d17b2fe8bdc77d89c2ef4e0591d (diff) | |
Merge commit 'v3.3-rc6' into next
Diffstat (limited to 'include/linux/init_task.h')
| -rw-r--r-- | include/linux/init_task.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/linux/init_task.h b/include/linux/init_task.h index 94b1e356c02a..9c66b1ada9d7 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h | |||
| @@ -23,11 +23,10 @@ extern struct files_struct init_files; | |||
| 23 | extern struct fs_struct init_fs; | 23 | extern struct fs_struct init_fs; |
| 24 | 24 | ||
| 25 | #ifdef CONFIG_CGROUPS | 25 | #ifdef CONFIG_CGROUPS |
| 26 | #define INIT_THREADGROUP_FORK_LOCK(sig) \ | 26 | #define INIT_GROUP_RWSEM(sig) \ |
| 27 | .threadgroup_fork_lock = \ | 27 | .group_rwsem = __RWSEM_INITIALIZER(sig.group_rwsem), |
| 28 | __RWSEM_INITIALIZER(sig.threadgroup_fork_lock), | ||
| 29 | #else | 28 | #else |
| 30 | #define INIT_THREADGROUP_FORK_LOCK(sig) | 29 | #define INIT_GROUP_RWSEM(sig) |
| 31 | #endif | 30 | #endif |
| 32 | 31 | ||
| 33 | #define INIT_SIGNALS(sig) { \ | 32 | #define INIT_SIGNALS(sig) { \ |
| @@ -46,7 +45,7 @@ extern struct fs_struct init_fs; | |||
| 46 | }, \ | 45 | }, \ |
| 47 | .cred_guard_mutex = \ | 46 | .cred_guard_mutex = \ |
| 48 | __MUTEX_INITIALIZER(sig.cred_guard_mutex), \ | 47 | __MUTEX_INITIALIZER(sig.cred_guard_mutex), \ |
| 49 | INIT_THREADGROUP_FORK_LOCK(sig) \ | 48 | INIT_GROUP_RWSEM(sig) \ |
| 50 | } | 49 | } |
| 51 | 50 | ||
| 52 | extern struct nsproxy init_nsproxy; | 51 | extern struct nsproxy init_nsproxy; |
| @@ -126,6 +125,8 @@ extern struct cred init_cred; | |||
| 126 | # define INIT_PERF_EVENTS(tsk) | 125 | # define INIT_PERF_EVENTS(tsk) |
| 127 | #endif | 126 | #endif |
| 128 | 127 | ||
| 128 | #define INIT_TASK_COMM "swapper" | ||
| 129 | |||
| 129 | /* | 130 | /* |
| 130 | * INIT_TASK is used to set up the first task table, touch at | 131 | * INIT_TASK is used to set up the first task table, touch at |
| 131 | * your own risk!. Base=0, limit=0x1fffff (=2MB) | 132 | * your own risk!. Base=0, limit=0x1fffff (=2MB) |
| @@ -162,7 +163,7 @@ extern struct cred init_cred; | |||
| 162 | .group_leader = &tsk, \ | 163 | .group_leader = &tsk, \ |
| 163 | RCU_INIT_POINTER(.real_cred, &init_cred), \ | 164 | RCU_INIT_POINTER(.real_cred, &init_cred), \ |
| 164 | RCU_INIT_POINTER(.cred, &init_cred), \ | 165 | RCU_INIT_POINTER(.cred, &init_cred), \ |
| 165 | .comm = "swapper", \ | 166 | .comm = INIT_TASK_COMM, \ |
| 166 | .thread = INIT_THREAD, \ | 167 | .thread = INIT_THREAD, \ |
| 167 | .fs = &init_fs, \ | 168 | .fs = &init_fs, \ |
| 168 | .files = &init_files, \ | 169 | .files = &init_files, \ |
