kdb: Use ktime_get_ts()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 11 Jun 2014 23:59:16 +0000 (23:59 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 12 Jun 2014 14:18:45 +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>
Cc: Jason Wessel <jason.wessel@windriver.com>
Link: http://lkml.kernel.org/r/20140611234607.261629142@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/debug/kdb/kdb_main.c

index 2f7c760305cac120195f43913abe811095ac258f..379650b984f8150bd7ead11fa57767261ce21758 100644 (file)
@@ -2472,7 +2472,7 @@ static void kdb_gmtime(struct timespec *tv, struct kdb_tm *tm)
 static void kdb_sysinfo(struct sysinfo *val)
 {
        struct timespec uptime;
-       do_posix_clock_monotonic_gettime(&uptime);
+       ktime_get_ts(&uptime);
        memset(val, 0, sizeof(*val));
        val->uptime = uptime.tv_sec;
        val->loads[0] = avenrun[0];