From: Tim Schmielau BSD accounting was missed in the conversion from HZ to USER_HZ. I thought nobody cared, but apparently there are still users to it. --- 25-akpm/kernel/acct.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff -puN kernel/acct.c~BSD-accounting-HZ-leak-fix kernel/acct.c --- 25/kernel/acct.c~BSD-accounting-HZ-leak-fix 2004-03-17 03:20:58.715642584 -0800 +++ 25-akpm/kernel/acct.c 2004-03-17 03:20:58.718642128 -0800 @@ -52,6 +52,7 @@ #include #include #include +#include #include #include #include /* sector_div */ @@ -336,13 +337,13 @@ static void do_acct_process(long exitcod strlcpy(ac.ac_comm, current->comm, sizeof(ac.ac_comm)); - elapsed = get_jiffies_64() - current->start_time; + elapsed = jiffies_64_to_clock_t(get_jiffies_64() - current->start_time); ac.ac_etime = encode_comp_t(elapsed < (unsigned long) -1l ? (unsigned long) elapsed : (unsigned long) -1l); - do_div(elapsed, HZ); + do_div(elapsed, USER_HZ); ac.ac_btime = xtime.tv_sec - elapsed; - ac.ac_utime = encode_comp_t(current->utime); - ac.ac_stime = encode_comp_t(current->stime); + ac.ac_utime = encode_comp_t(jiffies_to_clock_t(current->utime)); + ac.ac_stime = encode_comp_t(jiffies_to_clock_t(current->stime)); /* we really need to bite the bullet and change layout */ ac.ac_uid = current->uid; ac.ac_gid = current->gid; _