diff options
author | Oleg Nesterov <oleg@redhat.com> | 2013-07-03 15:08:30 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-03 16:08:03 -0700 |
commit | 80628ca06c5d42929de6bc22c0a41589a834d151 (patch) | |
tree | a76f3264bac4b21554221ac54bddc69c759aed9b /drivers/tc | |
parent | b57922b6c76c3ee401bb32fd3f298409dd6e6a53 (diff) | |
download | blackbird-obmc-linux-80628ca06c5d42929de6bc22c0a41589a834d151.tar.gz blackbird-obmc-linux-80628ca06c5d42929de6bc22c0a41589a834d151.zip |
kernel/fork.c:copy_process(): unify CLONE_THREAD-or-thread_group_leader code
Cleanup and preparation for the next changes.
Move the "if (clone_flags & CLONE_THREAD)" code down under "if
(likely(p->pid))" and turn it into into the "else" branch. This makes the
process/thread initialization more symmetrical and removes one check.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Pavel Emelyanov <xemul@parallels.com>
Cc: Sergey Dyasly <dserrg@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/tc')
0 files changed, 0 insertions, 0 deletions