]> git.baikalelectronics.ru Git - kernel.git/commit
sched: accounting regression since rc1
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 23 Aug 2007 13:18:02 +0000 (15:18 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 23 Aug 2007 13:18:02 +0000 (15:18 +0200)
commit58b61b29e4bae412bf8bbb4787c3fffcd92b2ec6
treed545f25d113646491e75bd09b521dfa6db5f0276
parente613dcaa3b5505250085cfccc7d53b58cc8b4798
sched: accounting regression since rc1

Fix the accounting regression for CONFIG_VIRT_CPU_ACCOUNTING.  It
reverts parts of commit d84202e37087ab4c3ccde6f9d5c102634fb3335e by
converting fs/proc/array.c back to cputime_t.  The new functions
task_utime and task_stime now return cputime_t instead of clock_t.  If
CONFIG_VIRT_CPU_ACCOUTING is set, task->utime and task->stime are
returned directly instead of using sum_exec_runtime.

Patch is tested on s390x with and without VIRT_CPU_ACCOUTING as well as
on i386.

[ mingo@elte.hu: cleanups, comments. ]

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
fs/proc/array.c