From: Ken Chen Date: Wed, 17 Dec 2008 07:41:22 +0000 (-0800) Subject: schedstat: consolidate per-task cpu runtime stats X-Git-Tag: v2.6.29-rc1~585^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c2c48020ec0dd6ecd27e5a1298f73b40d85a595;p=pandora-kernel.git 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 Acked-by: Peter Zijlstra Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed