]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5698ee82c9445ce7e8b79837899b79180e2942df
treefcc2e93829d8fc93867c64f58a637cf4fadf5c5e
parent35511c7d3a2393c038b131b0e2ab9630c2495ece
sched/cputime: Fix accounting on multi-threaded processes

Recent commit f3f23d1a ("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