diff options
Diffstat (limited to 'arch/alpha')
-rw-r--r-- | arch/alpha/kernel/osf_sys.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c index 14db93e4c8a8..dbc1760f418b 100644 --- a/arch/alpha/kernel/osf_sys.c +++ b/arch/alpha/kernel/osf_sys.c | |||
@@ -1139,6 +1139,7 @@ struct rusage32 { | |||
1139 | SYSCALL_DEFINE2(osf_getrusage, int, who, struct rusage32 __user *, ru) | 1139 | SYSCALL_DEFINE2(osf_getrusage, int, who, struct rusage32 __user *, ru) |
1140 | { | 1140 | { |
1141 | struct rusage32 r; | 1141 | struct rusage32 r; |
1142 | cputime_t utime, stime; | ||
1142 | 1143 | ||
1143 | if (who != RUSAGE_SELF && who != RUSAGE_CHILDREN) | 1144 | if (who != RUSAGE_SELF && who != RUSAGE_CHILDREN) |
1144 | return -EINVAL; | 1145 | return -EINVAL; |
@@ -1146,8 +1147,9 @@ SYSCALL_DEFINE2(osf_getrusage, int, who, struct rusage32 __user *, ru) | |||
1146 | memset(&r, 0, sizeof(r)); | 1147 | memset(&r, 0, sizeof(r)); |
1147 | switch (who) { | 1148 | switch (who) { |
1148 | case RUSAGE_SELF: | 1149 | case RUSAGE_SELF: |
1149 | jiffies_to_timeval32(current->utime, &r.ru_utime); | 1150 | task_cputime(current, &utime, &stime); |
1150 | jiffies_to_timeval32(current->stime, &r.ru_stime); | 1151 | jiffies_to_timeval32(utime, &r.ru_utime); |
1152 | jiffies_to_timeval32(stime, &r.ru_stime); | ||
1151 | r.ru_minflt = current->min_flt; | 1153 | r.ru_minflt = current->min_flt; |
1152 | r.ru_majflt = current->maj_flt; | 1154 | r.ru_majflt = current->maj_flt; |
1153 | break; | 1155 | break; |