]> err.no Git - linux-2.6/commitdiff
sched: debug: fix sum_exec_runtime clearing
authorIngo Molnar <mingo@elte.hu>
Wed, 5 Sep 2007 12:32:49 +0000 (14:32 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 5 Sep 2007 12:32:49 +0000 (14:32 +0200)
when cleaning sched-stats also clear prev_sum_exec_runtime.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_debug.c

index ab18f45f2ab23f6b76f6d8bf9a99e170892c9542..c3ee38bd3426d91449640d0d5329c7ead4ad038e 100644 (file)
@@ -283,4 +283,5 @@ void proc_sched_set_task(struct task_struct *p)
        p->se.wait_runtime_overruns = p->se.wait_runtime_underruns = 0;
 #endif
        p->se.sum_exec_runtime = 0;
+       p->se.prev_sum_exec_runtime     = 0;
 }