diff options
author | Peter Zijlstra <[email protected]> | 2014-11-12 12:37:37 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2014-11-16 10:04:18 +0100 |
commit | 23cfa361f3e54a3e184a5e126bbbdd95f984881a (patch) | |
tree | 05586994df46de68033653c1180f081ed45ae0be /lib/mpi | |
parent | 7af683350cb0ddd0e9d3819b4eb7abe9e2d3e709 (diff) |
sched/cputime: Fix cpu_timer_sample_group() double accounting
While looking over the cpu-timer code I found that we appear to add
the delta for the calling task twice, through:
cpu_timer_sample_group()
thread_group_cputimer()
thread_group_cputime()
times->sum_exec_runtime += task_sched_runtime();
*sample = cputime.sum_exec_runtime + task_delta_exec();
Which would make the sample run ahead, making the sleep short.
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: KOSAKI Motohiro <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Stanislaw Gruszka <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Tejun Heo <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions