[PATCH] remove unneeded sig->curr_target recalculation
authorOleg Nesterov <oleg@tv-sign.ru>
Sun, 8 Jan 2006 09:03:28 +0000 (01:03 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 9 Jan 2006 04:13:57 +0000 (20:13 -0800)
commit86174cdcb44c095ffd2e3ca69caa56244cf701d5
tree37d6cd5e6145fb659f436399268be1e7be950e61
parent08efd10edff199f0c992f04052e897a3f2048508
[PATCH] remove unneeded sig->curr_target recalculation

This patch removes unneeded sig->curr_target recalculation under 'if
(atomic_dec_and_test(&sig->count))' in __exit_signal().

When sig->count == 0 the signal can't be sent to this task and
next_thread(tsk) == tsk anyway.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/signal.c