]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
signals: microoptimize the usage of ->curr_target
authorOleg Nesterov <oleg@tv-sign.ru>
Wed, 30 Apr 2008 07:52:52 +0000 (00:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Apr 2008 15:29:35 +0000 (08:29 -0700)
commitdb51aeccd7097ce19a522a4c5ff91c320f870e2b
tree373bdfb55d1d90c04d53d4a419bcd156fe7f054c
parent08d2c30ce98d274137f12b0a9b9c74137455922c
signals: microoptimize the usage of ->curr_target

Suggested by Roland McGrath.

Initialize signal->curr_target in copy_signal().  This way ->curr_target is
never == NULL, we can kill the check in __group_complete_signal's hot path.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/fork.c
kernel/signal.c