diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2008-02-08 07:19:09 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-08 12:22:27 -0500 |
commit | 8520d7c7f8611216e3b270becec95bb35b6899d4 (patch) | |
tree | 77001e6830bb415590067e9d4be24cd8bdd36219 /init/main.c | |
parent | e4cc0a9c876d4d4eadaef97a2bff4a199946d202 (diff) |
teach set_special_pids() to use struct pid
Change set_special_pids() to work with struct pid, not pid_t from global name
space. This again speedups and imho cleanups the code, also a preparation for
the next patch.
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init/main.c')
-rw-r--r-- | init/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/main.c b/init/main.c index 2a78932f6c07..9a5b18c0a63d 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -833,7 +833,7 @@ static int __init kernel_init(void * unused) | |||
833 | */ | 833 | */ |
834 | init_pid_ns.child_reaper = current; | 834 | init_pid_ns.child_reaper = current; |
835 | 835 | ||
836 | __set_special_pids(1, 1); | 836 | __set_special_pids(task_pid(current)); |
837 | cad_pid = task_pid(current); | 837 | cad_pid = task_pid(current); |
838 | 838 | ||
839 | smp_prepare_cpus(setup_max_cpus); | 839 | smp_prepare_cpus(setup_max_cpus); |