aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc
diff options
context:
space:
mode:
authorHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>2009-11-26 00:49:05 -0500
committerIngo Molnar <mingo@elte.hu>2009-11-26 06:59:20 -0500
commitd5b7c78e975302a1bab28263266c39ecb71acad4 (patch)
tree47d9a18b2e81b3f93faf89b548b50beff29dd4fe /fs/proc
parentd180c5bccec02612256fd8076ff3c1fac3429553 (diff)
sched: Remove task_{u,s,g}time()
Now all task_{u,s}time() pairs are replaced by task_times(). And task_gtime() is too simple to be an inline function. Cleanup them all. Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> Acked-by: Peter Zijlstra <peterz@infradead.org> Cc: Stanislaw Gruszka <sgruszka@redhat.com> Cc: Spencer Candland <spencer@bluehost.com> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Balbir Singh <balbir@in.ibm.com> Cc: Americo Wang <xiyou.wangcong@gmail.com> LKML-Reference: <4B0E16D1.70902@jp.fujitsu.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c
index 330deda70d08..ca61a88aed66 100644
--- a/fs/proc/array.c
+++ b/fs/proc/array.c
@@ -511,7 +511,7 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
511 do { 511 do {
512 min_flt += t->min_flt; 512 min_flt += t->min_flt;
513 maj_flt += t->maj_flt; 513 maj_flt += t->maj_flt;
514 gtime = cputime_add(gtime, task_gtime(t)); 514 gtime = cputime_add(gtime, t->gtime);
515 t = next_thread(t); 515 t = next_thread(t);
516 } while (t != task); 516 } while (t != task);
517 517
@@ -536,7 +536,7 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
536 min_flt = task->min_flt; 536 min_flt = task->min_flt;
537 maj_flt = task->maj_flt; 537 maj_flt = task->maj_flt;
538 task_times(task, &utime, &stime); 538 task_times(task, &utime, &stime);
539 gtime = task_gtime(task); 539 gtime = task->gtime;
540 } 540 }
541 541
542 /* scale priority and nice values from timeslices to -20..20 */ 542 /* scale priority and nice values from timeslices to -20..20 */