Merge branch 'tracing/hw-branch-tracing' into tracing/core
[linux-2.6-block.git] / kernel / fork.c
index 085f73ebcea63606cc6110701e47f245a7176093..711468f3db2aeb9d179e60191c1e02f7d34d1375 100644 (file)
@@ -1088,8 +1088,8 @@ static struct task_struct *copy_process(unsigned long clone_flags,
 #ifdef CONFIG_DEBUG_MUTEXES
        p->blocked_on = NULL; /* not blocked yet */
 #endif
-       if (unlikely(current->ptrace))
-               ptrace_fork(p, clone_flags);
+
+       p->bts = NULL;
 
        /* Perform scheduler related setup. Assign this task to a CPU. */
        sched_fork(p, clone_flags);