aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/signal_64.c
diff options
context:
space:
mode:
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>2008-10-29 21:46:40 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-30 06:43:49 -0400
commit57917752f51bcead3bb6c83d74137fbe342504ec (patch)
treee20e8c7871f70ecb185cef3f34e9d3c36bcf2f6a /arch/x86/kernel/signal_64.c
parentcabf503588961d202a33b3fd872767e9f6abbef7 (diff)
x86: signal: cosmetic unification of NR_restart_syscall
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>
Diffstat (limited to 'arch/x86/kernel/signal_64.c')
-rw-r--r--arch/x86/kernel/signal_64.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/kernel/signal_64.c b/arch/x86/kernel/signal_64.c
index 49df79e05111..83990db82f74 100644
--- a/arch/x86/kernel/signal_64.c
+++ b/arch/x86/kernel/signal_64.c
@@ -420,8 +420,13 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka,
420 return 0; 420 return 0;
421} 421}
422 422
423#ifdef CONFIG_X86_32
424#define NR_restart_syscall __NR_restart_syscall
425#else /* !CONFIG_X86_32 */
423#define NR_restart_syscall \ 426#define NR_restart_syscall \
424 test_thread_flag(TIF_IA32) ? __NR_ia32_restart_syscall : __NR_restart_syscall 427 test_thread_flag(TIF_IA32) ? __NR_ia32_restart_syscall : __NR_restart_syscall
428#endif /* CONFIG_X86_32 */
429
425/* 430/*
426 * Note that 'init' is a special process: it doesn't get signals it doesn't 431 * Note that 'init' is a special process: it doesn't get signals it doesn't
427 * want to handle. Thus you cannot kill init even with a SIGKILL even by 432 * want to handle. Thus you cannot kill init even with a SIGKILL even by