]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
x86: Remove signal translation and exec_domain
authorRichard Weinberger <richard@nod.at>
Sun, 13 Jul 2014 15:43:51 +0000 (17:43 +0200)
committerRichard Weinberger <richard@nod.at>
Sun, 12 Apr 2015 19:03:28 +0000 (21:03 +0200)
As execution domain support is gone we can remove
signal translation from the signal code and remove
exec_domain from thread_info.

Signed-off-by: Richard Weinberger <richard@nod.at>
arch/x86/include/asm/thread_info.h
arch/x86/kernel/signal.c

index 1d4e4f279a3281e094684ad29bd4b544d37af6ab..2df52baf52282c28279b56570aedb3a2fe51d03a 100644 (file)
  */
 #ifndef __ASSEMBLY__
 struct task_struct;
-struct exec_domain;
 #include <asm/processor.h>
 #include <linux/atomic.h>
 
 struct thread_info {
        struct task_struct      *task;          /* main task structure */
-       struct exec_domain      *exec_domain;   /* execution domain */
        __u32                   flags;          /* low level flags */
        __u32                   status;         /* thread synchronous flags */
        __u32                   cpu;            /* current CPU */
@@ -39,7 +37,6 @@ struct thread_info {
 #define INIT_THREAD_INFO(tsk)                  \
 {                                              \
        .task           = &tsk,                 \
-       .exec_domain    = &default_exec_domain, \
        .flags          = 0,                    \
        .cpu            = 0,                    \
        .saved_preempt_count = INIT_PREEMPT_COUNT,      \
index e5042463c1bca59107e107117984c37753d732c3..5ddc7ec20e75518dda315458ef6d750c1f4bd4fc 100644 (file)
@@ -592,24 +592,10 @@ badframe:
        return 0;
 }
 
-/*
- * OK, we're invoking a handler:
- */
-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;
-}
-
 static int
 setup_rt_frame(struct ksignal *ksig, struct pt_regs *regs)
 {
-       int usig = signr_convert(ksig->sig);
+       int usig = ksig->sig;
        sigset_t *set = sigmask_to_save();
        compat_sigset_t *cset = (compat_sigset_t *) set;