diff options
author | Balbir Singh <balbir@linux.vnet.ibm.com> | 2007-10-30 00:26:32 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-10-30 00:26:32 +0100 |
commit | 9301899be75b464ef097f0b5af7af6d9bd8f68a7 (patch) | |
tree | a7053c5c0babcdbad6d4baff0551d60e5c4308af /include | |
parent | 82798a17ad40df827d465329a20ace80497f9b32 (diff) | |
download | linux-3.10-9301899be75b464ef097f0b5af7af6d9bd8f68a7.tar.gz linux-3.10-9301899be75b464ef097f0b5af7af6d9bd8f68a7.tar.bz2 linux-3.10-9301899be75b464ef097f0b5af7af6d9bd8f68a7.zip |
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 'include')
-rw-r--r-- | include/linux/sched.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index b0b1fe6e0b1..155d7438f7a 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1009,7 +1009,7 @@ struct task_struct { unsigned int rt_priority; cputime_t utime, stime, utimescaled, stimescaled; cputime_t gtime; - cputime_t prev_utime; + cputime_t prev_utime, prev_stime; unsigned long nvcsw, nivcsw; /* context switch counts */ struct timespec start_time; /* monotonic time */ struct timespec real_start_time; /* boot based time */ |