X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=fs%2Fproc%2Farray.c;h=bb9f4b05703de9b587a1b2cbd36ab651d2613da8;hb=4403b406d4369a275d483ece6ddee0088cc0d592;hp=f4bc0e789539f413e080324ab8209575ba349c42;hpb=2d51b75370d83535883c66521b03fcd6a1f1f68d;p=linux-2.6-omap-h63xx.git diff --git a/fs/proc/array.c b/fs/proc/array.c index f4bc0e78953..bb9f4b05703 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -388,20 +388,20 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns, /* add up live thread stats at the group level */ if (whole) { + struct task_cputime cputime; struct task_struct *t = task; do { min_flt += t->min_flt; maj_flt += t->maj_flt; - utime = cputime_add(utime, task_utime(t)); - stime = cputime_add(stime, task_stime(t)); gtime = cputime_add(gtime, task_gtime(t)); t = next_thread(t); } while (t != task); min_flt += sig->min_flt; maj_flt += sig->maj_flt; - utime = cputime_add(utime, sig->utime); - stime = cputime_add(stime, sig->stime); + thread_group_cputime(task, &cputime); + utime = cputime.utime; + stime = cputime.stime; gtime = cputime_add(gtime, sig->gtime); }