blackfin: Remove exec_domain usage
authorRichard Weinberger <richard@nod.at>
Fri, 3 Apr 2015 16:58:10 +0000 (18:58 +0200)
committerRichard Weinberger <richard@nod.at>
Sun, 12 Apr 2015 18:58:24 +0000 (20:58 +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/blackfin/include/asm/thread_info.h
arch/blackfin/kernel/signal.c

index 962be3f..2966b93 100644 (file)
@@ -37,7 +37,6 @@ typedef unsigned long mm_segment_t;
 
 struct thread_info {
        struct task_struct *task;       /* main task structure */
-       struct exec_domain *exec_domain;        /* execution domain */
        unsigned long flags;    /* low level flags */
        int cpu;                /* cpu we're on */
        int preempt_count;      /* 0 => preemptable, <0 => BUG */
@@ -53,7 +52,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 f2a8b54..1982a14 100644 (file)
@@ -151,11 +151,7 @@ setup_rt_frame(struct ksignal *ksig, sigset_t *set, struct pt_regs *regs)
 
        frame = get_sigframe(ksig, sizeof(*frame));
 
-       err |= __put_user((current_thread_info()->exec_domain
-                          && current_thread_info()->exec_domain->signal_invmap
-                          && ksig->sig < 32
-                          ? current_thread_info()->exec_domain->
-                          signal_invmap[ksig->sig] : ksig->sig), &frame->sig);
+       err |= __put_user(sig->sig, &frame->sig);
 
        err |= __put_user(&frame->info, &frame->pinfo);
        err |= __put_user(&frame->uc, &frame->puc);