diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2007-10-17 02:26:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 11:42:51 -0400 |
commit | 045f902de5a6eb5927c0f092c38be7a381f634f0 (patch) | |
tree | ab85cec6415197016032f97146c8004e846cdd5c /kernel/signal.c | |
parent | d2ee7198cc2414aade234a3cebc69e6cbff35d9b (diff) |
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>
Diffstat (limited to 'kernel/signal.c')
-rw-r--r-- | kernel/signal.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/signal.c b/kernel/signal.c index 792952381092..2f7736ff7418 100644 --- a/kernel/signal.c +++ b/kernel/signal.c | |||
@@ -2335,7 +2335,6 @@ int do_sigaction(int sig, struct k_sigaction *act, struct k_sigaction *oact) | |||
2335 | rm_from_queue_full(&mask, &t->signal->shared_pending); | 2335 | rm_from_queue_full(&mask, &t->signal->shared_pending); |
2336 | do { | 2336 | do { |
2337 | rm_from_queue_full(&mask, &t->pending); | 2337 | rm_from_queue_full(&mask, &t->pending); |
2338 | recalc_sigpending_and_wake(t); | ||
2339 | t = next_thread(t); | 2338 | t = next_thread(t); |
2340 | } while (t != current); | 2339 | } while (t != current); |
2341 | } | 2340 | } |