diff options
Diffstat (limited to 'fs/binfmt_elf.c')
-rw-r--r-- | fs/binfmt_elf.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 422370293cfd..e7bf01373bc4 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c | |||
@@ -1428,17 +1428,18 @@ static void fill_prstatus(struct elf_prstatus *prstatus, | |||
1428 | * group-wide total, not its individual thread total. | 1428 | * group-wide total, not its individual thread total. |
1429 | */ | 1429 | */ |
1430 | thread_group_cputime(p, &cputime); | 1430 | thread_group_cputime(p, &cputime); |
1431 | cputime_to_timeval(cputime.utime, &prstatus->pr_utime); | 1431 | prstatus->pr_utime = ns_to_timeval(cputime.utime); |
1432 | cputime_to_timeval(cputime.stime, &prstatus->pr_stime); | 1432 | prstatus->pr_stime = ns_to_timeval(cputime.stime); |
1433 | } else { | 1433 | } else { |
1434 | cputime_t utime, stime; | 1434 | u64 utime, stime; |
1435 | 1435 | ||
1436 | task_cputime(p, &utime, &stime); | 1436 | task_cputime(p, &utime, &stime); |
1437 | cputime_to_timeval(utime, &prstatus->pr_utime); | 1437 | prstatus->pr_utime = ns_to_timeval(utime); |
1438 | cputime_to_timeval(stime, &prstatus->pr_stime); | 1438 | prstatus->pr_stime = ns_to_timeval(stime); |
1439 | } | 1439 | } |
1440 | cputime_to_timeval(p->signal->cutime, &prstatus->pr_cutime); | 1440 | |
1441 | cputime_to_timeval(p->signal->cstime, &prstatus->pr_cstime); | 1441 | prstatus->pr_cutime = ns_to_timeval(p->signal->cutime); |
1442 | prstatus->pr_cstime = ns_to_timeval(p->signal->cstime); | ||
1442 | } | 1443 | } |
1443 | 1444 | ||
1444 | static int fill_psinfo(struct elf_prpsinfo *psinfo, struct task_struct *p, | 1445 | static int fill_psinfo(struct elf_prpsinfo *psinfo, struct task_struct *p, |