acct: Use ktime_get_ts()
authorThomas Gleixner <[email protected]>
Wed, 11 Jun 2014 23:59:12 +0000 (23:59 +0000)
committerThomas Gleixner <[email protected]>
Thu, 12 Jun 2014 14:18:44 +0000 (16:18 +0200)
do_posix_clock_monotonic_gettime() is a leftover from the initial
posix timer implementation which maps to ktime_get_ts()

Signed-off-by: Thomas Gleixner <[email protected]>
Cc: John Stultz <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
kernel/acct.c

index 808a86ff229d70eca061009a0b0a5977a4478fe1..1be013c6053eb6f94bedb819b8138d65c163dcb2 100644 (file)
@@ -484,7 +484,7 @@ static void do_acct_process(struct bsd_acct_struct *acct,
        strlcpy(ac.ac_comm, current->comm, sizeof(ac.ac_comm));
 
        /* calculate run_time in nsec*/
-       do_posix_clock_monotonic_gettime(&uptime);
+       ktime_get_ts(&uptime);
        run_time = (u64)uptime.tv_sec*NSEC_PER_SEC + uptime.tv_nsec;
        run_time -= (u64)current->group_leader->start_time.tv_sec * NSEC_PER_SEC
                       + current->group_leader->start_time.tv_nsec;