sched: Fix proc_sched_set_task()
authorMike Galbraith <efault@gmx.de>
Tue, 30 Mar 2010 09:09:53 +0000 (11:09 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 2 Apr 2010 18:06:40 +0000 (20:06 +0200)
Latencytop clearing sum_exec_runtime via proc_sched_set_task() breaks
task_times().  Other places in kernel use nvcsw and nivcsw, which are
being cleared as well,  Clear task statistics only.

Reported-by: Török Edwin <edwintorok@gmail.com>
Signed-off-by: Mike Galbraith <efault@gmx.de>
Cc: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Cc: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1269940193.19286.14.camel@marge.simson.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_debug.c

index 67f95aada4b95637b75432278b9d7391401a62d6..9b49db1440372bd6227e7e4258a0a6d78903e230 100644 (file)
@@ -518,8 +518,4 @@ void proc_sched_set_task(struct task_struct *p)
        p->se.nr_wakeups_idle                   = 0;
        p->sched_info.bkl_count                 = 0;
 #endif
-       p->se.sum_exec_runtime                  = 0;
-       p->se.prev_sum_exec_runtime             = 0;
-       p->nvcsw                                = 0;
-       p->nivcsw                               = 0;
 }