]> git.karo-electronics.de Git - karo-tx-linux.git/commit
signals: mv {dis,}allow_signal() from sched.h/exit.c to signal.[ch]
authorOleg Nesterov <oleg@redhat.com>
Thu, 22 May 2014 00:44:03 +0000 (10:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:44:03 +0000 (10:44 +1000)
commit13853720ae74014d7efa5dbd391b696e7a7f6367
treed5ea21b6b628ab2eee397da2ca06d0c725976300
parentd596125513fcb6f9174e05e7ec39c0b2fc6a5d48
signals: mv {dis,}allow_signal() from sched.h/exit.c to signal.[ch]

Move the declaration/definition of allow_signal/disallow_signal to
signal.h/signal.c.  The new place is more logical and allows to use the
static helpers in signal.c (see the next changes).

While at it, make them return void and remove the valid_signal() check.
Nobody checks the returned value, and in-kernel users must not pass the
wrong signal number.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/sched.h
include/linux/signal.h
kernel/exit.c
kernel/signal.c