arc: Remove signal translation and exec_domain
authorRichard Weinberger <richard@nod.at>
Fri, 27 Mar 2015 08:55:52 +0000 (09:55 +0100)
committerRichard Weinberger <richard@nod.at>
Sun, 12 Apr 2015 19:03:30 +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/arc/include/asm/thread_info.h
arch/arc/kernel/signal.c

index 1163a18..aca0d5a 100644 (file)
@@ -43,7 +43,6 @@ struct thread_info {
        int preempt_count;              /* 0 => preemptable, <0 => BUG */
        struct task_struct *task;       /* main task structure */
        mm_segment_t addr_limit;        /* thread address space */
-       struct exec_domain *exec_domain;/* execution domain */
        __u32 cpu;                      /* current CPU */
        unsigned long thr_ptr;          /* TLS ptr */
 };
@@ -56,7 +55,6 @@ struct thread_info {
 #define INIT_THREAD_INFO(tsk)                  \
 {                                              \
        .task       = &tsk,                     \
-       .exec_domain    = &default_exec_domain, \
        .flags      = 0,                        \
        .cpu        = 0,                        \
        .preempt_count  = INIT_PREEMPT_COUNT,   \
index edda76f..2251fb4 100644 (file)
@@ -171,18 +171,6 @@ static inline void __user *get_sigframe(struct ksignal *ksig,
        return frame;
 }
 
-/*
- * translate the signal
- */
-static inline int map_sig(int sig)
-{
-       struct thread_info *thread = current_thread_info();
-       if (thread->exec_domain && thread->exec_domain->signal_invmap
-           && sig < 32)
-               sig = thread->exec_domain->signal_invmap[sig];
-       return sig;
-}
-
 static int
 setup_rt_frame(struct ksignal *ksig, sigset_t *set, struct pt_regs *regs)
 {
@@ -231,7 +219,7 @@ setup_rt_frame(struct ksignal *ksig, sigset_t *set, struct pt_regs *regs)
                return err;
 
        /* #1 arg to the user Signal handler */
-       regs->r0 = map_sig(ksig->sig);
+       regs->r0 = ksig->sig;
 
        /* setup PC of user space signal handler */
        regs->ret = (unsigned long)ksig->ka.sa.sa_handler;