mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
sched: fix guest time accounting going faster than user time accounting
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>
This commit is contained in:
parent
4fa4d23fa2
commit
f9e26291be
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue