]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - arch/s390/kernel/ptrace.c
s390: move sys_call_table and last_break from thread_info to thread_struct
[mirror_ubuntu-zesty-kernel.git] / arch / s390 / kernel / ptrace.c
index 32b791abe38cad6d4932a61a1550284d5aae35e5..b81ab8882e2ec9f1f8b2880cc511419b32ac6765 100644 (file)
@@ -461,7 +461,7 @@ long arch_ptrace(struct task_struct *child, long request,
                }
                return 0;
        case PTRACE_GET_LAST_BREAK:
-               put_user(task_thread_info(child)->last_break,
+               put_user(child->thread.last_break,
                         (unsigned long __user *) data);
                return 0;
        case PTRACE_ENABLE_TE:
@@ -811,7 +811,7 @@ long compat_arch_ptrace(struct task_struct *child, compat_long_t request,
                }
                return 0;
        case PTRACE_GET_LAST_BREAK:
-               put_user(task_thread_info(child)->last_break,
+               put_user(child->thread.last_break,
                         (unsigned int __user *) data);
                return 0;
        }
@@ -997,10 +997,10 @@ static int s390_last_break_get(struct task_struct *target,
        if (count > 0) {
                if (kbuf) {
                        unsigned long *k = kbuf;
-                       *k = task_thread_info(target)->last_break;
+                       *k = target->thread.last_break;
                } else {
                        unsigned long  __user *u = ubuf;
-                       if (__put_user(task_thread_info(target)->last_break, u))
+                       if (__put_user(target->thread.last_break, u))
                                return -EFAULT;
                }
        }
@@ -1327,7 +1327,7 @@ static int s390_compat_last_break_get(struct task_struct *target,
        compat_ulong_t last_break;
 
        if (count > 0) {
-               last_break = task_thread_info(target)->last_break;
+               last_break = target->thread.last_break;
                if (kbuf) {
                        unsigned long *k = kbuf;
                        *k = last_break;