signals: inline __fatal_signal_pending
authorRoland McGrath <roland@redhat.com>
Wed, 23 Sep 2009 22:57:04 +0000 (15:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Sep 2009 14:21:01 +0000 (07:21 -0700)
commitd9588725e52650e82989707f8fd2feb67ad2dc8e
tree39a9f9f5e8ba6a6e008b9ada310347e24ede400e
parentba0a6c9f6fceed11c6a99e8326f0477fe383e6b5
signals: inline __fatal_signal_pending

__fatal_signal_pending inlines to one instruction on x86, probably two
instructions on other machines.  It takes two longer x86 instructions just
to call it and test its return value, not to mention the function itself.

On my random x86_64 config, this saved 70 bytes of text (59 of those being
__fatal_signal_pending itself).

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