do_sigaction: remove now unneeded recalc_sigpending()
With the recent changes, do_sigaction()->recalc_sigpending_and_wake() can never clear TIF_SIGPENDING. Instead, it can set this flag and wake up the thread without any reason. Harmless, but unneeded and wastes CPU. Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Acked-by: Roland McGrath <roland@redhat.com> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Родитель
d2ee7198cc
Коммит
045f902de5
|
@ -2335,7 +2335,6 @@ int do_sigaction(int sig, struct k_sigaction *act, struct k_sigaction *oact)
|
|||
rm_from_queue_full(&mask, &t->signal->shared_pending);
|
||||
do {
|
||||
rm_from_queue_full(&mask, &t->pending);
|
||||
recalc_sigpending_and_wake(t);
|
||||
t = next_thread(t);
|
||||
} while (t != current);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче