aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/signal_32.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2007-06-04 01:15:51 -0400
committerPaul Mackerras <paulus@samba.org>2007-06-14 08:29:58 -0400
commitdb277e9a67b9d81b9d6cd74edf0c3e1a0ef2aa4b (patch)
tree288e98873d04c9a89b437f1a4a961acaebb90958 /arch/powerpc/kernel/signal_32.c
parent69d15f6b352a681f1db9bc70219a3e8e9d503dbf (diff)
[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_32.c')
-rw-r--r--arch/powerpc/kernel/signal_32.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/powerpc/kernel/signal_32.c b/arch/powerpc/kernel/signal_32.c
index f5713bfcc56e..1d899a56fa13 100644
--- a/arch/powerpc/kernel/signal_32.c
+++ b/arch/powerpc/kernel/signal_32.c
@@ -55,8 +55,6 @@
55 55
56#undef DEBUG_SIG 56#undef DEBUG_SIG
57 57
58#define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP)))
59
60#ifdef CONFIG_PPC64 58#ifdef CONFIG_PPC64
61#define do_signal do_signal32 59#define do_signal do_signal32
62#define sys_sigsuspend compat_sys_sigsuspend 60#define sys_sigsuspend compat_sys_sigsuspend
@@ -697,23 +695,6 @@ int compat_sys_sigaltstack(u32 __new, u32 __old, int r5,
697} 695}
698#endif /* CONFIG_PPC64 */ 696#endif /* CONFIG_PPC64 */
699 697
700
701/*
702 * Restore the user process's signal mask
703 */
704#ifdef CONFIG_PPC64
705extern void restore_sigmask(sigset_t *set);
706#else /* CONFIG_PPC64 */
707static void restore_sigmask(sigset_t *set)
708{
709 sigdelsetmask(set, ~_BLOCKABLE);
710 spin_lock_irq(&current->sighand->siglock);
711 current->blocked = *set;
712 recalc_sigpending();
713 spin_unlock_irq(&current->sighand->siglock);
714}
715#endif
716
717/* 698/*
718 * Set up a signal frame for a "real-time" signal handler 699 * Set up a signal frame for a "real-time" signal handler
719 * (one which gets siginfo). 700 * (one which gets siginfo).