]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit73a2bcb0edb9ffb0b007b3546b430e2c6e415eee
treedd84f61589c7dd21b7be973c288611ffe547f21b
parentf7402e0361d4472535e07cfca648f2fa81d85cd2
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