x86: signal: cosmetic unification of signr_convert()
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Thu, 30 Oct 2008 01:44:08 +0000 (18:44 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 30 Oct 2008 10:43:47 +0000 (11:43 +0100)
Impact: cleanup

Make signr_convert() same.

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/signal_32.c
arch/x86/kernel/signal_64.c

index 85a0d37cdae9b203f369064656a79c5969785fcc..abf0df700fd098dbb52250c631bc60773909774f 100644 (file)
@@ -503,10 +503,12 @@ static int __setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
  */
 static int signr_convert(int sig)
 {
+#ifdef CONFIG_X86_32
        struct thread_info *info = current_thread_info();
 
        if (info->exec_domain && info->exec_domain->signal_invmap && sig < 32)
                return info->exec_domain->signal_invmap[sig];
+#endif /* CONFIG_X86_32 */
        return sig;
 }
 
index 3d0deb33674584e8ea9a7f1866ce02da43987eb1..a4b46e6392b16e4c2e4e76eef4147954646768b6 100644 (file)
@@ -295,6 +295,12 @@ static int __setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
  */
 static int signr_convert(int sig)
 {
+#ifdef CONFIG_X86_32
+       struct thread_info *info = current_thread_info();
+
+       if (info->exec_domain && info->exec_domain->signal_invmap && sig < 32)
+               return info->exec_domain->signal_invmap[sig];
+#endif /* CONFIG_X86_32 */
        return sig;
 }