acct: Use ktime_get_ts()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 11 Jun 2014 23:59:12 +0000 (23:59 +0000)
committerThomas Gleixner <tglx@linutronix.de>
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 <tglx@linutronix.de>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20140611234606.764810535@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
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;