diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2012-12-25 16:28:27 -0500 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-03 18:15:53 -0500 |
| commit | 86df89a0845a80aa765f3e5e0da43fdf9287029f (patch) | |
| tree | 9fb2300a073dc86635ed442997feee899a83c621 /arch/cris | |
| parent | 9df794d9275d41012909aaff3cab759e37871974 (diff) | |
cris: switch to generic old sigsuspend
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/cris')
| -rw-r--r-- | arch/cris/Kconfig | 1 | ||||
| -rw-r--r-- | arch/cris/arch-v10/kernel/signal.c | 12 | ||||
| -rw-r--r-- | arch/cris/arch-v32/kernel/signal.c | 11 |
3 files changed, 1 insertions, 23 deletions
diff --git a/arch/cris/Kconfig b/arch/cris/Kconfig index 22d470276408..686968c10897 100644 --- a/arch/cris/Kconfig +++ b/arch/cris/Kconfig | |||
| @@ -51,6 +51,7 @@ config CRIS | |||
| 51 | select MODULES_USE_ELF_RELA | 51 | select MODULES_USE_ELF_RELA |
| 52 | select CLONE_BACKWARDS2 | 52 | select CLONE_BACKWARDS2 |
| 53 | select GENERIC_SIGALTSTACK | 53 | select GENERIC_SIGALTSTACK |
| 54 | select OLD_SIGSUSPEND | ||
| 54 | 55 | ||
| 55 | config HZ | 56 | config HZ |
| 56 | int | 57 | int |
diff --git a/arch/cris/arch-v10/kernel/signal.c b/arch/cris/arch-v10/kernel/signal.c index 9570946a6958..e53c1b455c35 100644 --- a/arch/cris/arch-v10/kernel/signal.c +++ b/arch/cris/arch-v10/kernel/signal.c | |||
| @@ -41,18 +41,6 @@ | |||
| 41 | 41 | ||
| 42 | void do_signal(int canrestart, struct pt_regs *regs); | 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 | int sys_sigaction(int sig, const struct old_sigaction __user *act, | 44 | int sys_sigaction(int sig, const struct old_sigaction __user *act, |
| 57 | struct old_sigaction *oact) | 45 | struct old_sigaction *oact) |
| 58 | { | 46 | { |
diff --git a/arch/cris/arch-v32/kernel/signal.c b/arch/cris/arch-v32/kernel/signal.c index 1f29c692b7ef..4ccf144b49a9 100644 --- a/arch/cris/arch-v32/kernel/signal.c +++ b/arch/cris/arch-v32/kernel/signal.c | |||
| @@ -51,17 +51,6 @@ struct rt_signal_frame { | |||
| 51 | void do_signal(int restart, struct pt_regs *regs); | 51 | void do_signal(int restart, struct pt_regs *regs); |
| 52 | void keep_debug_flags(unsigned long oldccs, unsigned long oldspc, | 52 | void keep_debug_flags(unsigned long oldccs, unsigned long oldspc, |
| 53 | struct pt_regs *regs); | 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 | int | 55 | int |
| 67 | sys_sigaction(int signal, const struct old_sigaction *act, | 56 | sys_sigaction(int signal, const struct old_sigaction *act, |
