Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cris: switch to generic old sigsuspend

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 86df89a0 9df794d9

+1 -23
+1
arch/cris/Kconfig
··· 51 51 select MODULES_USE_ELF_RELA 52 52 select CLONE_BACKWARDS2 53 53 select GENERIC_SIGALTSTACK 54 + select OLD_SIGSUSPEND 54 55 55 56 config HZ 56 57 int
-12
arch/cris/arch-v10/kernel/signal.c
··· 41 41 42 42 void do_signal(int canrestart, struct pt_regs *regs); 43 43 44 - /* 45 - * Atomically swap in the new signal mask, and wait for a signal. Define 46 - * dummy arguments to be able to reach the regs argument. (Note that this 47 - * arrangement relies on old_sigset_t occupying one register.) 48 - */ 49 - int sys_sigsuspend(old_sigset_t mask) 50 - { 51 - sigset_t blocked; 52 - siginitset(&blocked, mask); 53 - return sigsuspend(&blocked); 54 - } 55 - 56 44 int sys_sigaction(int sig, const struct old_sigaction __user *act, 57 45 struct old_sigaction *oact) 58 46 {
-11
arch/cris/arch-v32/kernel/signal.c
··· 51 51 void do_signal(int restart, struct pt_regs *regs); 52 52 void keep_debug_flags(unsigned long oldccs, unsigned long oldspc, 53 53 struct pt_regs *regs); 54 - /* 55 - * Swap in the new signal mask, and wait for a signal. Define some 56 - * dummy arguments to be able to reach the regs argument. 57 - */ 58 - int 59 - sys_sigsuspend(old_sigset_t mask) 60 - { 61 - sigset_t blocked; 62 - siginitset(&blocked, mask); 63 - return sigsuspend(&blocked); 64 - } 65 54 66 55 int 67 56 sys_sigaction(int signal, const struct old_sigaction *act,