From: Christian Borntraeger Date: Fri, 19 Oct 2007 18:52:40 +0000 (+0200) Subject: sched: fix guest time accounting going faster than user time accounting X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f9e26291be31cb494c1845e356daba84b39ab059;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git sched: fix guest time accounting going faster than user time accounting cputime_add already adds, dont do it twice. Signed-off-by: Christian Borntraeger Signed-off-by: Ingo Molnar --- diff --git a/fs/proc/array.c b/fs/proc/array.c index 27b59f5f3bd1..b9be6e355cc6 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -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);