aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 8dd8ff281009..09c0b90a69cc 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1059,6 +1059,11 @@ static struct task_struct *copy_process(unsigned long clone_flags,
1059 p->prev_utime = cputime_zero; 1059 p->prev_utime = cputime_zero;
1060 p->prev_stime = cputime_zero; 1060 p->prev_stime = cputime_zero;
1061 1061
1062#ifdef CONFIG_DETECT_SOFTLOCKUP
1063 p->last_switch_count = 0;
1064 p->last_switch_timestamp = 0;
1065#endif
1066
1062#ifdef CONFIG_TASK_XACCT 1067#ifdef CONFIG_TASK_XACCT
1063 p->rchar = 0; /* I/O counter: bytes read */ 1068 p->rchar = 0; /* I/O counter: bytes read */
1064 p->wchar = 0; /* I/O counter: bytes written */ 1069 p->wchar = 0; /* I/O counter: bytes written */