schedstat: consolidate per-task cpu runtime stats
authorKen Chen <kenchen@google.com>
Wed, 17 Dec 2008 07:41:22 +0000 (23:41 -0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 18 Dec 2008 12:54:01 +0000 (13:54 +0100)
commit9c2c48020ec0dd6ecd27e5a1298f73b40d85a595
tree1a44f56e18012120aff0969094eebd572deb2ea3
parente9515c3c9feecd74174c2998add0db51e02abb8d
schedstat: consolidate per-task cpu runtime stats

Impact: simplify code

When we turn on CONFIG_SCHEDSTATS, per-task cpu runtime is accumulated
twice. Once in task->se.sum_exec_runtime and once in sched_info.cpu_time.
These two stats are exactly the same.

Given that task->se.sum_exec_runtime is always accumulated by the core
scheduler, sched_info can reuse that data instead of duplicate the accounting.

Signed-off-by: Ken Chen <kenchen@google.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
fs/proc/base.c
include/linux/sched.h
kernel/delayacct.c
kernel/sched.c
kernel/sched_stats.h