aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-02-13 03:34:07 -0500
committerIngo Molnar <mingo@elte.hu>2009-02-13 03:34:07 -0500
commite9c4ffb11f0b19005b5b9dc8481687a3637e5887 (patch)
tree7007f2ff846b9b057c5cd7c25e8b82e49f9b4b63 /kernel/fork.c
parent4bcf349a0f90d1e69eb35c6df0fa285c886c1cd6 (diff)
parent071a0bc2ceace31266836801510879407a3701fa (diff)
Merge branch 'linus' into perfcounters/core
Conflicts: arch/x86/kernel/acpi/boot.c
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index b01c5b04bcff..4640a3e0085e 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -856,13 +856,14 @@ static int copy_signal(unsigned long clone_flags, struct task_struct *tsk)
856 sig->tty_old_pgrp = NULL; 856 sig->tty_old_pgrp = NULL;
857 sig->tty = NULL; 857 sig->tty = NULL;
858 858
859 sig->cutime = sig->cstime = cputime_zero; 859 sig->utime = sig->stime = sig->cutime = sig->cstime = cputime_zero;
860 sig->gtime = cputime_zero; 860 sig->gtime = cputime_zero;
861 sig->cgtime = cputime_zero; 861 sig->cgtime = cputime_zero;
862 sig->nvcsw = sig->nivcsw = sig->cnvcsw = sig->cnivcsw = 0; 862 sig->nvcsw = sig->nivcsw = sig->cnvcsw = sig->cnivcsw = 0;
863 sig->min_flt = sig->maj_flt = sig->cmin_flt = sig->cmaj_flt = 0; 863 sig->min_flt = sig->maj_flt = sig->cmin_flt = sig->cmaj_flt = 0;
864 sig->inblock = sig->oublock = sig->cinblock = sig->coublock = 0; 864 sig->inblock = sig->oublock = sig->cinblock = sig->coublock = 0;
865 task_io_accounting_init(&sig->ioac); 865 task_io_accounting_init(&sig->ioac);
866 sig->sum_sched_runtime = 0;
866 taskstats_tgid_init(sig); 867 taskstats_tgid_init(sig);
867 868
868 task_lock(current->group_leader); 869 task_lock(current->group_leader);
@@ -1100,7 +1101,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
1100#ifdef CONFIG_DEBUG_MUTEXES 1101#ifdef CONFIG_DEBUG_MUTEXES
1101 p->blocked_on = NULL; /* not blocked yet */ 1102 p->blocked_on = NULL; /* not blocked yet */
1102#endif 1103#endif
1103 if (unlikely(ptrace_reparented(current))) 1104 if (unlikely(current->ptrace))
1104 ptrace_fork(p, clone_flags); 1105 ptrace_fork(p, clone_flags);
1105 1106
1106 /* Perform scheduler related setup. Assign this task to a CPU. */ 1107 /* Perform scheduler related setup. Assign this task to a CPU. */