Skip to content

Commit

Permalink
sched: fix guest time accounting going faster than user time accounting
Browse files Browse the repository at this point in the history
cputime_add already adds, dont do it twice.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Christian Borntraeger authored and Ingo Molnar committed Oct 19, 2007
1 parent 4fa4d23 commit f9e2629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/proc/array.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ static int do_task_stat(struct task_struct *task, char *buffer, int whole)
maj_flt += sig->maj_flt;
utime = cputime_add(utime, sig->utime);
stime = cputime_add(stime, sig->stime);
gtime += cputime_add(gtime, sig->gtime);
gtime = cputime_add(gtime, sig->gtime);
}

sid = signal_session(sig);
Expand Down

0 comments on commit f9e2629

Please sign in to comment.