diff options
author | Balbir Singh <balbir@linux.vnet.ibm.com> | 2007-10-29 19:26:32 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-10-29 19:26:32 -0400 |
commit | 9301899be75b464ef097f0b5af7af6d9bd8f68a7 (patch) | |
tree | a7053c5c0babcdbad6d4baff0551d60e5c4308af /kernel/fork.c | |
parent | 82798a17ad40df827d465329a20ace80497f9b32 (diff) |
sched: fix /proc/<PID>/stat stime/utime monotonicity, part 2
Extend Peter's patch to fix accounting issues, by keeping stime
monotonic too.
Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Tested-by: Frans Pop <elendil@planet.nl>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index a65bfc47177c..28a740151988 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -1057,6 +1057,7 @@ static struct task_struct *copy_process(unsigned long clone_flags, | |||
1057 | p->utimescaled = cputime_zero; | 1057 | p->utimescaled = cputime_zero; |
1058 | p->stimescaled = cputime_zero; | 1058 | p->stimescaled = cputime_zero; |
1059 | p->prev_utime = cputime_zero; | 1059 | p->prev_utime = cputime_zero; |
1060 | p->prev_stime = cputime_zero; | ||
1060 | 1061 | ||
1061 | #ifdef CONFIG_TASK_XACCT | 1062 | #ifdef CONFIG_TASK_XACCT |
1062 | p->rchar = 0; /* I/O counter: bytes read */ | 1063 | p->rchar = 0; /* I/O counter: bytes read */ |