sched: Fix proc_sched_set_task()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Sunday, April 4, 2010 - 12:59 pm

Gitweb:     http://git.kernel.org/linus/269484a492d9177072ee11ec8c9bff71d256837a
Commit:     269484a492d9177072ee11ec8c9bff71d256837a
Parent:     42be79e37e264557f12860fa4cc84b4de3685954
Author:     Mike Galbraith <efault@gmx.de>
AuthorDate: Tue Mar 30 11:09:53 2010 +0200
Committer:  Ingo Molnar <mingo@elte.hu>
CommitDate: Fri Apr 2 20:06:40 2010 +0200

    sched: Fix proc_sched_set_task()
    
    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 |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/kernel/sched_debug.c b/kernel/sched_debug.c
index 67f95aa..9b49db1 100644
--- a/kernel/sched_debug.c
+++ b/kernel/sched_debug.c
@@ -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;
 }
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
sched: Fix proc_sched_set_task(), Linux Kernel Mailing ..., (Sun Apr 4, 12:59 pm)