diff options
Diffstat (limited to 'kernel/sys.c')
-rw-r--r-- | kernel/sys.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index 4a43617cd565..763c3c17ded3 100644 --- a/kernel/sys.c +++ b/kernel/sys.c | |||
@@ -1629,6 +1629,8 @@ static void k_getrusage(struct task_struct *p, int who, struct rusage *r) | |||
1629 | utime = stime = cputime_zero; | 1629 | utime = stime = cputime_zero; |
1630 | 1630 | ||
1631 | if (who == RUSAGE_THREAD) { | 1631 | if (who == RUSAGE_THREAD) { |
1632 | utime = task_utime(current); | ||
1633 | stime = task_stime(current); | ||
1632 | accumulate_thread_rusage(p, r); | 1634 | accumulate_thread_rusage(p, r); |
1633 | goto out; | 1635 | goto out; |
1634 | } | 1636 | } |