sched/cputime: Fix accounting on multi-threaded processes
authorStanislaw Gruszka <sgruszka@redhat.com>
Thu, 4 Apr 2013 08:57:48 +0000 (10:57 +0200)
committerIngo Molnar <mingo@kernel.org>
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 <sgruszka@redhat.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20130404085740.GA2495@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/cputime.c