projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42be79e
)
sched: Fix proc_sched_set_task()
author
Mike Galbraith
<
[email protected]
>
Tue, 30 Mar 2010 09:09:53 +0000
(11:09 +0200)
committer
Ingo Molnar
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Mike Galbraith <
[email protected]
>
Cc: Hidetoshi Seto <
[email protected]
>
Cc: Arjan van de Ven <
[email protected]
>
Signed-off-by: Peter Zijlstra <
[email protected]
>
LKML-Reference: <
1269940193
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
kernel/sched_debug.c
patch
|
blob
|
history
diff --git
a/kernel/sched_debug.c
b/kernel/sched_debug.c
index 67f95aada4b95637b75432278b9d7391401a62d6..9b49db1440372bd6227e7e4258a0a6d78903e230 100644
(file)
--- 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;
}