kdb: Use ktime_get_ts()
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>
This commit is contained in:
parent
4e8c5847d1
commit
a9821c741c
|
@ -2472,7 +2472,7 @@ static void kdb_gmtime(struct timespec *tv, struct kdb_tm *tm)
|
||||||
static void kdb_sysinfo(struct sysinfo *val)
|
static void kdb_sysinfo(struct sysinfo *val)
|
||||||
{
|
{
|
||||||
struct timespec uptime;
|
struct timespec uptime;
|
||||||
do_posix_clock_monotonic_gettime(&uptime);
|
ktime_get_ts(&uptime);
|
||||||
memset(val, 0, sizeof(*val));
|
memset(val, 0, sizeof(*val));
|
||||||
val->uptime = uptime.tv_sec;
|
val->uptime = uptime.tv_sec;
|
||||||
val->loads[0] = avenrun[0];
|
val->loads[0] = avenrun[0];
|
||||||
|
|
Loading…
Reference in New Issue