mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Cc: Oleg Nesterov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
ba0a6c9f6f
commit
d9588725e5
2 changed files with 4 additions and 7 deletions
|
|
@ -1050,12 +1050,6 @@ void zap_other_threads(struct task_struct *p)
|
|||
}
|
||||
}
|
||||
|
||||
int __fatal_signal_pending(struct task_struct *tsk)
|
||||
{
|
||||
return sigismember(&tsk->pending.signal, SIGKILL);
|
||||
}
|
||||
EXPORT_SYMBOL(__fatal_signal_pending);
|
||||
|
||||
struct sighand_struct *lock_task_sighand(struct task_struct *tsk, unsigned long *flags)
|
||||
{
|
||||
struct sighand_struct *sighand;
|
||||
|
|
|
|||
Loading…
Reference in a new issue