projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fa4d23
)
sched: fix guest time accounting going faster than user time accounting
author
Christian Borntraeger
<borntraeger@de.ibm.com>
Fri, 19 Oct 2007 18:52:40 +0000
(20:52 +0200)
committer
Ingo Molnar
<mingo@elte.hu>
Fri, 19 Oct 2007 18:52:40 +0000
(20:52 +0200)
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>
fs/proc/array.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/proc/array.c
b/fs/proc/array.c
index 27b59f5f3bd1f382ab16401671b5316dd867841d..b9be6e355cc6ba3ef3d712e47dfae41f13c37cf6 100644
(file)
--- 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);