aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sys.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sys.c')
-rw-r--r--kernel/sys.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/sys.c b/kernel/sys.c
index ce17760d9c51..bbdfce0d4347 100644
--- a/kernel/sys.c
+++ b/kernel/sys.c
@@ -1346,8 +1346,7 @@ static void k_getrusage(struct task_struct *p, int who, struct rusage *r)
1346 utime = stime = cputime_zero; 1346 utime = stime = cputime_zero;
1347 1347
1348 if (who == RUSAGE_THREAD) { 1348 if (who == RUSAGE_THREAD) {
1349 utime = task_utime(current); 1349 task_times(current, &utime, &stime);
1350 stime = task_stime(current);
1351 accumulate_thread_rusage(p, r); 1350 accumulate_thread_rusage(p, r);
1352 maxrss = p->signal->maxrss; 1351 maxrss = p->signal->maxrss;
1353 goto out; 1352 goto out;