sched/cputime: Fix accounting on multi-threaded processes
authorStanislaw Gruszka <[email protected]>
Thu, 4 Apr 2013 08:57:48 +0000 (10:57 +0200)
committerIngo Molnar <[email protected]>
Mon, 8 Apr 2013 15:40:52 +0000 (17:40 +0200)
commite614b3332a4f3f264a26da28e5a1f4cc3aea3974
treefcc2e93829d8fc93867c64f58a637cf4fadf5c5e
parentfd9b86d37a600488dbd80fe60cca46b822bff1cd
sched/cputime: Fix accounting on multi-threaded processes

Recent commit 6fac4829 ("cputime: Use accessors to read task
cputime stats") introduced a bug, where we account many times
the cputime of the first thread, instead of cputimes of all
the different threads.

Signed-off-by: Stanislaw Gruszka <[email protected]>
Acked-by: Frederic Weisbecker <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
kernel/sched/cputime.c