]> git.karo-electronics.de Git - karo-tx-linux.git/commit
signal: Add block_sigmask() for adding sigmask to current->blocked
authorMatt Fleming <matt.fleming@intel.com>
Fri, 19 Aug 2011 16:46:17 +0000 (17:46 +0100)
committerOleg Nesterov <oleg@redhat.com>
Wed, 24 Aug 2011 18:12:58 +0000 (20:12 +0200)
commit95ddf41f5a8b2d974fbd03455e1819dcfb787c68
treeda6de6bc51dc8e301286802d85ac4f439f1be560
parent736f3f1de26cf55fc9410bb2100b57bf60b03a1b
signal: Add block_sigmask() for adding sigmask to current->blocked

This patch abstracts the code sequence for adding a signal handler's
sa_mask to current->blocked because the sequence is identical for all
architectures. Furthermore, in the past some architectures actually
got this code wrong, so introduce a wrapper that all architectures can
use.

Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
arch/x86/kernel/signal.c
include/linux/signal.h
kernel/signal.c