Commit f9e26291 authored by Christian Borntraeger's avatar Christian Borntraeger Committed by Ingo Molnar

sched: fix guest time accounting going faster than user time accounting

cputime_add already adds, dont do it twice.
Signed-off-by: default avatarChristian Borntraeger <>
Signed-off-by: default avatarIngo Molnar <>
parent 4fa4d23f
...@@ -446,7 +446,7 @@ static int do_task_stat(struct task_struct *task, char *buffer, int whole) ...@@ -446,7 +446,7 @@ static int do_task_stat(struct task_struct *task, char *buffer, int whole)
maj_flt += sig->maj_flt; maj_flt += sig->maj_flt;
utime = cputime_add(utime, sig->utime); utime = cputime_add(utime, sig->utime);
stime = cputime_add(stime, sig->stime); stime = cputime_add(stime, sig->stime);
gtime += cputime_add(gtime, sig->gtime); gtime = cputime_add(gtime, sig->gtime);
} }
sid = signal_session(sig); sid = signal_session(sig);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment