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

Add #ifdef directive for unification.

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 abf0df700fd098dbb52250c631bc60773909774f..6f3b9a9cc123bab4680564570fe4e9bcf47578fe 100644 (file)
@@ -512,10 +512,22 @@ static int signr_convert(int sig)
        return sig;
 }
 
+#ifdef CONFIG_X86_32
+
 #define is_ia32        1
 #define ia32_setup_frame       __setup_frame
 #define ia32_setup_rt_frame    __setup_rt_frame
 
+#else /* !CONFIG_X86_32 */
+
+#ifdef CONFIG_IA32_EMULATION
+#define is_ia32        test_thread_flag(TIF_IA32)
+#else /* !CONFIG_IA32_EMULATION */
+#define is_ia32        0
+#endif /* CONFIG_IA32_EMULATION */
+
+#endif /* CONFIG_X86_32 */
+
 static int
 setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
               sigset_t *set, struct pt_regs *regs)
index a4b46e6392b16e4c2e4e76eef4147954646768b6..49df79e051115426752137475fb3d318ee23ff6c 100644 (file)
@@ -304,11 +304,21 @@ static int signr_convert(int sig)
        return sig;
 }
 
+#ifdef CONFIG_X86_32
+
+#define is_ia32        1
+#define ia32_setup_frame       __setup_frame
+#define ia32_setup_rt_frame    __setup_rt_frame
+
+#else /* !CONFIG_X86_32 */
+
 #ifdef CONFIG_IA32_EMULATION
 #define is_ia32        test_thread_flag(TIF_IA32)
-#else
+#else /* !CONFIG_IA32_EMULATION */
 #define is_ia32        0
-#endif
+#endif /* CONFIG_IA32_EMULATION */
+
+#endif /* CONFIG_X86_32 */
 
 static int
 setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,