]> git.baikalelectronics.ru Git - kernel.git/commit
introduce "struct wait_opts" to simplify do_wait() patches
authorOleg Nesterov <oleg@redhat.com>
Wed, 17 Jun 2009 23:27:39 +0000 (16:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 18 Jun 2009 20:03:52 +0000 (13:03 -0700)
commit8ff7fb79e8c006c594172c19e759fa342ffa13d5
treed9465ffe404d318e0038d3133f76550faa3ce3c3
parent7d61b5f685a521a4663fc4470b7de49e26f1d422
introduce "struct wait_opts" to simplify do_wait() patches

Introduce "struct wait_opts" which holds the parameters for misc helpers
in do_wait() pathes.

This adds 13 lines to kernel/exit.c, but saves 256 bytes from .o and imho
makes the code much more readable.

This patch temporary uglifies rusage/siginfo code a little bit, will be
addressed by further cleanups.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/exit.c