[PATCH] simplify do_signal_stop()
authorOleg Nesterov <oleg@tv-sign.ru>
Wed, 29 Mar 2006 00:11:28 +0000 (16:11 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 29 Mar 2006 02:36:44 +0000 (18:36 -0800)
commitdac27f4a09c274db048e80d2511102e540ac9e3a
treefeb4af6d7b1a784ece9909b8d5f11bd6ad83cdca
parenta7e5328a06a2beee3a2bbfaf87ce2a7bbe937de1
[PATCH] simplify do_signal_stop()

do_signal_stop() considers 'thread_group_empty()' as a special case.
This was needed to avoid taking tasklist_lock. Since this lock is
unneeded any longer, we can remove this special case and simplify
the code even more.

Also, before this patch, finish_stop() was called with stop_count == -1
for 'thread_group_empty()' case. This is not strictly wrong, but confusing
and unneeded.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: john stultz <johnstul@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/signal.c