diff options
author | Christoph Hellwig <hch@lst.de> | 2007-06-04 15:15:51 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-06-14 22:29:58 +1000 |
commit | db277e9a67b9d81b9d6cd74edf0c3e1a0ef2aa4b (patch) | |
tree | 288e98873d04c9a89b437f1a4a961acaebb90958 /arch/powerpc/kernel/signal.h | |
parent | 69d15f6b352a681f1db9bc70219a3e8e9d503dbf (diff) | |
download | kernel_samsung_smdk4412-db277e9a67b9d81b9d6cd74edf0c3e1a0ef2aa4b.tar.gz kernel_samsung_smdk4412-db277e9a67b9d81b9d6cd74edf0c3e1a0ef2aa4b.tar.bz2 kernel_samsung_smdk4412-db277e9a67b9d81b9d6cd74edf0c3e1a0ef2aa4b.zip |
[POWERPC] Consolidate restore_sigmask
restore_sigmask is exactly the same on 32 and 64bit, so move it to
common code. Also move _BLOCKABLE to signal.h to avoid defining it
multiple times.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/signal.h')
-rw-r--r-- | arch/powerpc/kernel/signal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/signal.h b/arch/powerpc/kernel/signal.h index 1e8dfb8620a..4b091d8b764 100644 --- a/arch/powerpc/kernel/signal.h +++ b/arch/powerpc/kernel/signal.h @@ -10,6 +10,9 @@ #ifndef _POWERPC_ARCH_SIGNAL_H #define _POWERPC_ARCH_SIGNAL_H +#define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP))) + +extern void restore_sigmask(sigset_t *set); extern void check_syscall_restart(struct pt_regs *regs, struct k_sigaction *ka, int has_handler); |