]> git.karo-electronics.de Git - linux-beck.git/commitdiff
x86: signal: cosmetic unification of NR_restart_syscall
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Thu, 30 Oct 2008 01:46:40 +0000 (18:46 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 30 Oct 2008 10:43:49 +0000 (11:43 +0100)
Impact: cleanup

Add #ifdef directive to unify NR_restart_syscall.

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 6f3b9a9cc123bab4680564570fe4e9bcf47578fe..a0efc1b3c4c96898bac6c2f758c530c5ca99ac05 100644 (file)
@@ -628,7 +628,13 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka,
        return 0;
 }
 
+#ifdef CONFIG_X86_32
 #define NR_restart_syscall     __NR_restart_syscall
+#else /* !CONFIG_X86_32 */
+#define NR_restart_syscall     \
+       test_thread_flag(TIF_IA32) ? __NR_ia32_restart_syscall : __NR_restart_syscall
+#endif /* CONFIG_X86_32 */
+
 /*
  * Note that 'init' is a special process: it doesn't get signals it doesn't
  * want to handle. Thus you cannot kill init even with a SIGKILL even by
index 49df79e051115426752137475fb3d318ee23ff6c..83990db82f744eac9d8fc8a1ab08bb0e428394f6 100644 (file)
@@ -420,8 +420,13 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka,
        return 0;
 }
 
+#ifdef CONFIG_X86_32
+#define NR_restart_syscall     __NR_restart_syscall
+#else /* !CONFIG_X86_32 */
 #define NR_restart_syscall     \
        test_thread_flag(TIF_IA32) ? __NR_ia32_restart_syscall : __NR_restart_syscall
+#endif /* CONFIG_X86_32 */
+
 /*
  * Note that 'init' is a special process: it doesn't get signals it doesn't
  * want to handle. Thus you cannot kill init even with a SIGKILL even by