aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/signal_n32.c
diff options
context:
space:
mode:
authorFranck Bui-Huu <fbuihuu@gmail.com>2007-02-05 09:24:27 -0500
committerRalf Baechle <ralf@linux-mips.org>2007-02-10 17:38:48 -0500
commitf90080a059fc19444b3a63affd1f4ecece62c11c (patch)
tree446635241c5685bc525c89532967b7adf4c59589 /arch/mips/kernel/signal_n32.c
parent6bfe96616062acb75c2460f01acc79236a8ba0e8 (diff)
[MIPS] signal: do not use save_static_function() anymore
This macro was used to save static registers before calling sys_sigsuspend() and sys_sigreturn(). For the sys_sigreturn() case, there's no point to save them since they have been already saved by setup_sigcontext() before calling the signal handler. For the sys_sigsuspend() case, I don't see any reasons... Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/signal_n32.c')
-rw-r--r--arch/mips/kernel/signal_n32.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/mips/kernel/signal_n32.c b/arch/mips/kernel/signal_n32.c
index 1d4f39cd0386..57456e6a0c62 100644
--- a/arch/mips/kernel/signal_n32.c
+++ b/arch/mips/kernel/signal_n32.c
@@ -87,9 +87,7 @@ struct rt_sigframe_n32 {
87 87
88extern void sigset_from_compat (sigset_t *set, compat_sigset_t *compat); 88extern void sigset_from_compat (sigset_t *set, compat_sigset_t *compat);
89 89
90save_static_function(sysn32_rt_sigsuspend); 90asmlinkage int sysn32_rt_sigsuspend(nabi_no_regargs struct pt_regs regs)
91__attribute_used__ noinline static int
92_sysn32_rt_sigsuspend(nabi_no_regargs struct pt_regs regs)
93{ 91{
94 compat_sigset_t __user *unewset; 92 compat_sigset_t __user *unewset;
95 compat_sigset_t uset; 93 compat_sigset_t uset;
@@ -119,9 +117,7 @@ _sysn32_rt_sigsuspend(nabi_no_regargs struct pt_regs regs)
119 return -ERESTARTNOHAND; 117 return -ERESTARTNOHAND;
120} 118}
121 119
122save_static_function(sysn32_rt_sigreturn); 120asmlinkage void sysn32_rt_sigreturn(nabi_no_regargs struct pt_regs regs)
123__attribute_used__ noinline static void
124_sysn32_rt_sigreturn(nabi_no_regargs struct pt_regs regs)
125{ 121{
126 struct rt_sigframe_n32 __user *frame; 122 struct rt_sigframe_n32 __user *frame;
127 sigset_t set; 123 sigset_t set;