]> git.baikalelectronics.ru Git - kernel.git/commit
sched: keep utime/stime monotonic
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 29 Oct 2007 20:18:11 +0000 (21:18 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 29 Oct 2007 20:18:11 +0000 (21:18 +0100)
commit22a316ae7d4bf3e709d67778fcc6363e27b48f55
treedd84f61589c7dd21b7be973c288611ffe547f21b
parent1ecc580aaae9b32a4af07570e85fcf684e0e69f3
sched: keep utime/stime monotonic

keep utime/stime monotonic.

cpustats use utime/stime as a ratio against sum_exec_runtime, as a
consequence it can happen - when the ratio changes faster than time
accumulates - that either can be appear to go backwards.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
fs/proc/array.c
include/linux/sched.h
kernel/fork.c