]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm26/kernel/process.c
Merge ../linus
[linux-2.6-omap-h63xx.git] / arch / arm26 / kernel / process.c
index 15833a0057dd1c9ad7360275cd81b4e1716d053b..dcd81e62ff4e83f3c11b2a7c0f1b45d8da57c3fe 100644 (file)
@@ -11,7 +11,6 @@
  */
 #include <stdarg.h>
 
-#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/sched.h>
 #include <linux/kernel.h>
@@ -277,10 +276,9 @@ int
 copy_thread(int nr, unsigned long clone_flags, unsigned long stack_start,
            unsigned long unused, struct task_struct *p, struct pt_regs *regs)
 {
-       struct thread_info *thread = p->thread_info;
-       struct pt_regs *childregs;
+       struct thread_info *thread = task_thread_info(p);
+       struct pt_regs *childregs = task_pt_regs(p);
 
-       childregs = __get_user_regs(thread);
        *childregs = *regs;
        childregs->ARM_r0 = 0;
        childregs->ARM_sp = stack_start;