|
@@ -453,8 +453,8 @@ static void fill_ac(acct_t *ac)
|
|
spin_lock_irq(¤t->sighand->siglock);
|
|
spin_lock_irq(¤t->sighand->siglock);
|
|
tty = current->signal->tty; /* Safe as we hold the siglock */
|
|
tty = current->signal->tty; /* Safe as we hold the siglock */
|
|
ac->ac_tty = tty ? old_encode_dev(tty_devnum(tty)) : 0;
|
|
ac->ac_tty = tty ? old_encode_dev(tty_devnum(tty)) : 0;
|
|
- ac->ac_utime = encode_comp_t(jiffies_to_AHZ(cputime_to_jiffies(pacct->ac_utime)));
|
|
|
|
- ac->ac_stime = encode_comp_t(jiffies_to_AHZ(cputime_to_jiffies(pacct->ac_stime)));
|
|
|
|
|
|
+ ac->ac_utime = encode_comp_t(nsec_to_AHZ(pacct->ac_utime));
|
|
|
|
+ ac->ac_stime = encode_comp_t(nsec_to_AHZ(pacct->ac_stime));
|
|
ac->ac_flag = pacct->ac_flag;
|
|
ac->ac_flag = pacct->ac_flag;
|
|
ac->ac_mem = encode_comp_t(pacct->ac_mem);
|
|
ac->ac_mem = encode_comp_t(pacct->ac_mem);
|
|
ac->ac_minflt = encode_comp_t(pacct->ac_minflt);
|
|
ac->ac_minflt = encode_comp_t(pacct->ac_minflt);
|
|
@@ -530,7 +530,7 @@ out:
|
|
void acct_collect(long exitcode, int group_dead)
|
|
void acct_collect(long exitcode, int group_dead)
|
|
{
|
|
{
|
|
struct pacct_struct *pacct = ¤t->signal->pacct;
|
|
struct pacct_struct *pacct = ¤t->signal->pacct;
|
|
- cputime_t utime, stime;
|
|
|
|
|
|
+ u64 utime, stime;
|
|
unsigned long vsize = 0;
|
|
unsigned long vsize = 0;
|
|
|
|
|
|
if (group_dead && current->mm) {
|
|
if (group_dead && current->mm) {
|
|
@@ -559,7 +559,8 @@ void acct_collect(long exitcode, int group_dead)
|
|
pacct->ac_flag |= ACORE;
|
|
pacct->ac_flag |= ACORE;
|
|
if (current->flags & PF_SIGNALED)
|
|
if (current->flags & PF_SIGNALED)
|
|
pacct->ac_flag |= AXSIG;
|
|
pacct->ac_flag |= AXSIG;
|
|
- task_cputime_t(current, &utime, &stime);
|
|
|
|
|
|
+
|
|
|
|
+ task_cputime(current, &utime, &stime);
|
|
pacct->ac_utime += utime;
|
|
pacct->ac_utime += utime;
|
|
pacct->ac_stime += stime;
|
|
pacct->ac_stime += stime;
|
|
pacct->ac_minflt += current->min_flt;
|
|
pacct->ac_minflt += current->min_flt;
|